public function ConfigurableLanguageManager::init in Drupal 8
Same name and namespace in other branches
- 9 core/modules/language/src/ConfigurableLanguageManager.php \Drupal\language\ConfigurableLanguageManager::init()
File
- core/
modules/ language/ src/ ConfigurableLanguageManager.php, line 131
Class
- ConfigurableLanguageManager
- Overrides default LanguageManager to provide configured languages.
Namespace
Drupal\languageCode
public function init() {
if (!$this->initialized) {
foreach ($this
->getDefinedLanguageTypes() as $type) {
$this
->getCurrentLanguage($type);
}
$this->initialized = TRUE;
}
}