Fully Qualified Name: | Zend\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
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 | |
$textDomain | string |
Returns: mixed
Sets whether translator is enabled and should be used
Parameter Name | Type | Description |
---|---|---|
$enabled | bool |
Returns: mixed
Set translation text domain
Parameter Name | Type | Description |
---|---|---|
$textDomain | string |
Returns: mixed