public function TranslationManager::__construct

Constructs a TranslationManager object.

File

drupal/core/lib/Drupal/Core/StringTranslation/TranslationManager.php, line 50
Contains \Drupal\Core\StringTranslation\TranslationManager.

Class

TranslationManager
Defines a chained translation implementation combining multiple translators.

Namespace

Drupal\Core\StringTranslation

Code

public function __construct() {

  // @todo Inject language_manager or config system after language_default
  //   variable is converted to CMI.
  $this->defaultLangcode = language_default()->langcode;
}