Status |
---|
colour | Yellow |
---|
title | Available as of >= 5.4 / 2014.09 |
---|
|
Description
ez_trans_prop()
is a generic, low level Twig helper which correct translated value of a multi valued(translations) property.
Info |
---|
If the current language cannot be found as a translation for content, main language (see further down for details) will be used if this is supported by provided object. This behavior is identical when forcing a language using forcedLanguage. |
...
Argument name | Type | Description |
---|
object | eZ\Publish\Core\Repository\Values\ValueObject | ValueObject object property belongs to. |
property | string | Property to get translated value from, logic is using one of the following (in this order):- property "{property}s"
- method "get{property}"
|
forcedLanguage | string | Language we want to force (e.g. "eng-US "), otherwise takes prioritized languages from SiteAccess settings. |
...