ConfigurableLanguageManager::getLanguageTypes

public ConfigurableLanguageManager::getLanguageTypes()

Returns an array of the available language types.

Return value

array An array of language type machine names.

Overrides LanguageManager::getLanguageTypes

File

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

Class

ConfigurableLanguageManager
Overrides default LanguageManager to provide configured languages.

Namespace

Drupal\language

Code

public function getLanguageTypes() {
  $this->loadLanguageTypesConfiguration();
  return $this->languageTypes['configurable'];
}
doc_Drupal
2016-10-29 08:55:16
Comments
Leave a Comment

Please login to continue.