TranslatableDataObject::T
A template accessor used to get the translated version of a given field.
Does the same as @see getLocalizedValue ex: $T(Description) in the locale it_IT returns $yourClass->getField('Description__it_IT');
Signature
public function T(string
$field,
[boolean
$strict = true,
[boolean
$parseShortCodes = false]] )
Parameters
$field
— string- the name of the field without any locale extension. Eg. "Title"
$strict
— boolean- if false, this will fallback to the master version of the field!
$parseShortCodes
— boolean- whether or not the value should be parsed with the shortcode parser
Returns
- string|DBField
Line | Task |
---|---|
285 | throw an exception? |