| Fully Qualified Name: | Laminas\Validator\Translator\TranslatorAwareInterface |
| Name | Description | Defined By |
|---|---|---|
| getTranslator() | Returns translator used in object | TranslatorAwareInterface |
| getTranslatorTextDomain() | Return the translation text domain | TranslatorAwareInterface |
| hasTranslator() | Checks if the object has a translator | TranslatorAwareInterface |
| isTranslatorEnabled() | Returns whether translator is enabled and should be used | TranslatorAwareInterface |
| setTranslator() | Sets translator to use in helper | TranslatorAwareInterface |
| setTranslatorEnabled() | Sets whether translator is enabled and should be used | TranslatorAwareInterface |
| setTranslatorTextDomain() | Set translation text domain | TranslatorAwareInterface |
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 | [optional] |
| $textDomain | string | [optional] |
Returns: self
Sets whether translator is enabled and should be used
| Parameter Name | Type | Description |
|---|---|---|
| $enabled | bool | [optional] |
Returns: self
Set translation text domain
| Parameter Name | Type | Description |
|---|---|---|
| $textDomain | string |
Returns: \TranslatorAwareInterface