TranslationManager::$translators
Same name in other branches
- 9 core/lib/Drupal/Core/StringTranslation/TranslationManager.php \Drupal\Core\StringTranslation\TranslationManager::translators
- 8.9.x core/lib/Drupal/Core/StringTranslation/TranslationManager.php \Drupal\Core\StringTranslation\TranslationManager::translators
- 11.x core/lib/Drupal/Core/StringTranslation/TranslationManager.php \Drupal\Core\StringTranslation\TranslationManager::translators
An unsorted array of arrays of active translators.
An associative array. The keys are integers that indicate priority. Values are arrays of TranslatorInterface objects.
Type: \Drupal\Core\StringTranslation\Translator\TranslatorInterface[][]
See also
\Drupal\Core\StringTranslation\TranslationManager::addTranslator()
\Drupal\Core\StringTranslation\TranslationManager::sortTranslators()
File
-
core/
lib/ Drupal/ Core/ StringTranslation/ TranslationManager.php, line 24
Class
- TranslationManager
- Defines a chained translation implementation combining multiple translators.
Namespace
Drupal\Core\StringTranslationCode
protected $translators = [];
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.