PHP Class FluidTYPO3\Vhs\ViewHelpers\Media\Image\AbstractImageViewHelper

Inheritance: extends FluidTYPO3\Vhs\ViewHelpers\Media\AbstractMediaViewHelper
Show file Open project: fluidtypo3/vhs Class Usage Examples

Protected Properties

Property Type Description
$configurationManager TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface
$contentObject TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer
$imageInfo array Result of \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer::getImgResource()
$tsfeBackup contains a backup of the current $GLOBALS['TSFE'] if used in BE mode
$workingDirectoryBackup string

Public Methods

Method Description
initializeArguments ( ) : void Initialize arguments.
injectConfigurationManager ( TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface $configurationManager ) : void
preprocessImage ( string | null $imageSource = null )

Protected Methods

Method Description
resetFrontendEnvironment ( ) : void Resets $GLOBALS['TSFE'] if it was previously changed by simulateFrontendEnvironment()
simulateFrontendEnvironment ( ) : void Prepares $GLOBALS['TSFE'] for Backend mode This somewhat hacky work around is currently needed because the getImgResource() function of \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer relies on those variables to be set

Method Details

initializeArguments() public method

Initialize arguments.
public initializeArguments ( ) : void
return void

injectConfigurationManager() public method

public injectConfigurationManager ( TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface $configurationManager ) : void
$configurationManager TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface
return void

preprocessImage() public method

public preprocessImage ( string | null $imageSource = null )
$imageSource string | null

resetFrontendEnvironment() protected method

Resets $GLOBALS['TSFE'] if it was previously changed by simulateFrontendEnvironment()
See also: simulateFrontendEnvironment()
protected resetFrontendEnvironment ( ) : void
return void

simulateFrontendEnvironment() protected method

Prepares $GLOBALS['TSFE'] for Backend mode This somewhat hacky work around is currently needed because the getImgResource() function of \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer relies on those variables to be set
protected simulateFrontendEnvironment ( ) : void
return void

Property Details

$configurationManager protected property

protected ConfigurationManagerInterface,TYPO3\CMS\Extbase\Configuration $configurationManager
return TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface

$contentObject protected property

protected ContentObjectRenderer,TYPO3\CMS\Frontend\ContentObject $contentObject
return TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer

$imageInfo protected property

Result of \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer::getImgResource()
protected array $imageInfo
return array

$tsfeBackup protected property

contains a backup of the current $GLOBALS['TSFE'] if used in BE mode
protected $tsfeBackup

$workingDirectoryBackup protected property

protected string $workingDirectoryBackup
return string