Fully Qualified Name: | Laminas\I18n\Translator\TranslatorAwareTrait |
Name | Description | Defined By |
---|---|---|
getTranslator() | Returns translator used in object | TranslatorAwareTrait |
getTranslatorTextDomain() | Return the translation text domain | TranslatorAwareTrait |
hasTranslator() | Checks if the object has a translator | TranslatorAwareTrait |
isTranslatorEnabled() | Returns whether translator is enabled and should be used | TranslatorAwareTrait |
setTranslator() | Sets translator to use in helper | TranslatorAwareTrait |
setTranslatorEnabled() | Sets whether translator is enabled and should be used | TranslatorAwareTrait |
setTranslatorTextDomain() | Set translation text domain | TranslatorAwareTrait |
Returns translator used in object
Returns: \TranslatorInterface|null
Return the translation text domain
Returns: string
Checks if the object has a translator
Returns: bool
Returns whether translator is enabled and should be used
Returns: bool
Sets translator to use in helper
Parameter Name | Type | Description |
---|---|---|
$translator | \TranslatorInterface|null | |
$textDomain | string|null |
Returns: $this
Sets whether translator is enabled and should be used
Parameter Name | Type | Description |
---|---|---|
$enabled | bool |
Returns: $this
Set translation text domain
Parameter Name | Type | Description |
---|---|---|
$textDomain | string |
Returns: $this