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

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
2016-10-29 08:55:17
Comments
Leave a Comment

Please login to continue.