| 
| Size: | 11428 | 
| Storage flags: | no_autoload,compress/gzip (27%) | 
The AbstractTranslatorHelper view helper is used as a base abstract class for any helpers that need to translate content. It provides an implementation for the Zend\I18n\Translator\TranslatorAwareInterface which allows injecting a translator and setting a text domain.
Sets Zend\I18n\Translator\Translator to use in helper. The $textDomain argument is optional. It is provided as a convenience for setting both the translator and textDomain at the same time.
Returns the Zend\I18n\Translator\Translator used in the helper.
| Return type: | Zend\I18n\Translator\Translator | 
|---|
Returns true if a Zend\I18n\Translator\Translator is set in the helper, and false if otherwise.
| Return type: | boolean | 
|---|
Sets whether translations should be enabled or disabled.
Returns true if translations are enabled, and false if disabled.
| Return type: | boolean | 
|---|
Set the translation text domain to use in helper when translating.
Returns the translation text domain used in the helper.
| Return type: | string | 
|---|
The source code of this file is hosted on GitHub. Everyone can update and fix errors in this document with few clicks - no downloads needed.