public TranslationManager::__construct(LanguageDefault $default_language)
Constructs a TranslationManager object.
Parameters
\Drupal\Core\Language\LanguageDefault $default_language: The default language.
File
- core/lib/Drupal/Core/StringTranslation/TranslationManager.php, line 52
Class
- TranslationManager
- Defines a chained translation implementation combining multiple translators.
Namespace
Drupal\Core\StringTranslation
Code
public function __construct(LanguageDefault $default_language) { $this->defaultLangcode = $default_language->get()->getId(); }
Please login to continue.