PHP Class eZ\Publish\Core\MVC\Symfony\Templating\Twig\Extension\ImageExtension

Inheritance: extends Twig_Extensio\Twig_Extension
Datei anzeigen Open project: ezsystems/ezpublish-kernel

Public Methods

Method Description
__construct ( eZ\Publish\SPI\Variation\VariationHandler $imageVariationService )
getFunctions ( )
getImageVariation ( eZ\Publish\API\Repository\Values\Content\Field $field, eZ\Publish\API\Repository\Values\Content\VersionInfo $versionInfo, string $variationName ) : eZ\Publish\SPI\Variation\Values\Variation Returns the image variation object for $field/$versionInfo.
getName ( )

Method Details

__construct() public method

public __construct ( eZ\Publish\SPI\Variation\VariationHandler $imageVariationService )
$imageVariationService eZ\Publish\SPI\Variation\VariationHandler

getFunctions() public method

public getFunctions ( )

getImageVariation() public method

Returns the image variation object for $field/$versionInfo.
public getImageVariation ( eZ\Publish\API\Repository\Values\Content\Field $field, eZ\Publish\API\Repository\Values\Content\VersionInfo $versionInfo, string $variationName ) : eZ\Publish\SPI\Variation\Values\Variation
$field eZ\Publish\API\Repository\Values\Content\Field
$versionInfo eZ\Publish\API\Repository\Values\Content\VersionInfo
$variationName string
return eZ\Publish\SPI\Variation\Values\Variation

getName() public method

public getName ( )