ConfigurableLanguageManager::loadLanguageTypesConfiguration

protected ConfigurableLanguageManager::loadLanguageTypesConfiguration()

Retrieves language types from the configuration storage.

Return value

array An array of language type names.

File

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

Class

ConfigurableLanguageManager
Overrides default LanguageManager to provide configured languages.

Namespace

Drupal\language

Code

1
2
3
4
5
6
protected function loadLanguageTypesConfiguration() {
  if (!$this->languageTypes) {
    $this->languageTypes = $this->configFactory->get('language.types')->get() ? : array('configurable' => array(), 'all' => parent::getLanguageTypes());
  }
  return $this->languageTypes;
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.