TranslationManager::__construct

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();
}
doc_Drupal
2016-10-29 09:49:18
Comments
Leave a Comment

Please login to continue.