General

  eZ Systems Website
  Editor documentation


  Developer documentation

  Back to the top

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Description

ez_image_alias() is a Twig helper that lets you display a selected variant (alias) of an image.

Prototype and Arguments

ez_image_alias( eZ\Publish\API\Repository\Values\Content\Field field, eZ\Publish\Core\Repository\Values\Content\VersionInfo versionInfo, string variantName )

Argument nameTypeDescription
fieldeZ\Publish\API\Repository\Values\Content\FieldThe image Field
versionInfoeZ\Publish\Core\Repository\Values\Content\VersionInfoThe VersionInfo that the field belongs to
variantNamestringName of the image alias to be used

  • No labels