I18nTokenHelper
class I18nTokenHelper implements SerializableInterface
Traits
Methods
No description
No description
Return the translation of this token
No description
Optional: Called before serialization (e.g. to remember/convert an unserializable prop)
Optional: Called after unserialize (e.g. load from db / recover or connect resource)
Optional: Override this method and specify the properties to include during serialize null = All Properties will be serialized (default) [] = No Properties will be serialized ['id'] = $this->id will be serialized
Set explicit translation strings to use when evaluating token
Set explicit domain for this translation token
Details
at line 33
static I18nTokenHelper
_(string $formatString, string|array ...$formatValues)
No description
at line 105
string
__toString()
No description
at line 79
string
getTranslatedString()
Return the translation of this token
in
SerializableObjectTrait at line 16
array
jsonSerialize()
No description
at line 45
static I18nTokenHelper
ngettext(string $singularToken, string $pluralToken, int $count, array $placeholder = [])
No description
in
SerializableObjectTrait at line 219
void
onSerialize()
Optional: Called before serialization (e.g. to remember/convert an unserializable prop)
in
SerializableObjectTrait at line 225
void
onUnserialize()
Optional: Called after unserialize (e.g. load from db / recover or connect resource)
in
SerializableObjectTrait at line 24
SerializedObjectHelper
serializeObject()
No description
in
SerializableObjectTrait at line 212
protected array|null
serializePropertiesInclude()
Optional: Override this method and specify the properties to include during serialize null = All Properties will be serialized (default) [] = No Properties will be serialized ['id'] = $this->id will be serialized
at line 56
I18nTokenHelper
setExplicitTranslations(array $explicitTranslations = [])
Set explicit translation strings to use when evaluating token
at line 69
I18nTokenHelper
setTokenDomain(string $tokenDomain = 'default')
Set explicit domain for this translation token
in
SerializableObjectTrait at line 90
static object
unserializeObject(SerializedObjectHelper $SerializedObjectHelper)
No description
in
SerializableObjectTrait at line 121
static object
unserializeObjectFromJSON(string $json)
No description