public function ConfigurableLanguageManager::init in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/language/src/ConfigurableLanguageManager.php \Drupal\language\ConfigurableLanguageManager::init()
File
- core/
modules/ language/ src/ ConfigurableLanguageManager.php, line 136 - Contains \Drupal\language\ConfigurableLanguageManager.
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;
}
}