ConfigurableLanguageManager::init

File

core/modules/language/src/ConfigurableLanguageManager.php, line 131

Class

ConfigurableLanguageManager
Overrides default LanguageManager to provide configured languages.

Namespace

Drupal\language

Code

public function init() {
  if (!$this->initialized) {
    foreach ($this->getDefinedLanguageTypes() as $type) {
      $this->getCurrentLanguage($type);
    }
    $this->initialized = TRUE;
  }
}
doc_Drupal
2016-10-29 08:55:17
Comments
Leave a Comment

Please login to continue.