TranslatableDataObject::getLocalizedValue
Get the localized value for a given field.
Signature
public function getLocalizedValue(string
$fieldName,
[boolean
$strict = true,
[boolean
$parseShortCodes = false]] )
Parameters
$fieldName
—
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