function TranslationManager::__construct
Same name in this branch
- main core/modules/locale/src/TranslationManager.php \Drupal\locale\TranslationManager::__construct()
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/StringTranslation/TranslationManager.php \Drupal\Core\StringTranslation\TranslationManager::__construct()
- 10 core/lib/Drupal/Core/StringTranslation/TranslationManager.php \Drupal\Core\StringTranslation\TranslationManager::__construct()
- 9 core/lib/Drupal/Core/StringTranslation/TranslationManager.php \Drupal\Core\StringTranslation\TranslationManager::__construct()
- 8.9.x core/lib/Drupal/Core/StringTranslation/TranslationManager.php \Drupal\Core\StringTranslation\TranslationManager::__construct()
- 11.x core/modules/locale/src/TranslationManager.php \Drupal\locale\TranslationManager::__construct()
1 call to TranslationManager::__construct()
- TranslationManager::__construct in core/
modules/ locale/ src/ TranslationManager.php
2 methods override TranslationManager::__construct()
- TestTranslationManager::__construct in core/
tests/ Drupal/ Tests/ Core/ StringTranslation/ TranslationManagerTest.php - TranslationManager::__construct in core/
modules/ locale/ src/ TranslationManager.php
File
-
core/
lib/ Drupal/ Core/ StringTranslation/ TranslationManager.php, line 47
Class
- TranslationManager
- Defines a chained translation implementation combining multiple translators.
Namespace
Drupal\Core\StringTranslationCode
public function __construct(LanguageDefault $default_language) {
$this->defaultLangcode = $default_language->get()
->getId();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.