Skip to the content
Documentation

ez_image_alias: comparison of v.1 vs v.2

No ratings yet

Versions Compared

Old Version 1

changes.mady.by.user Dominika Kurek

Saved on Jul 08, 2016

compared with

New Version Current

changes.mady.by.user André Rømcke

Saved on Dec 31, 2016

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Comment: correct type hint on API and not internal implementation

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\CoreAPI\Repository\Values\Content\VersionInfo versionInfo, string variantName )

Argument name Type Description
field eZ\Publish\API\Repository\Values\Content\Field The image Field
versionInfo eZ\Publish\CoreAPI\Repository\Values\Content\VersionInfo The VersionInfo that the field belongs to
variantName string Name of the image alias to be used

Comments

Add a comment

Comments are read by a moderator before they appear.