public ConfigurableLanguageManager::getDefinedLanguageTypes()
Returns all the defined language types including fixed ones.
A language type maybe configurable or fixed. A fixed language type is a type whose language negotiation methods are module-defined and not altered through the user interface.
Return value
array An array of language type machine names.
Overrides ConfigurableLanguageManagerInterface::getDefinedLanguageTypes
File
- core/modules/language/src/ConfigurableLanguageManager.php, line 158
Class
- ConfigurableLanguageManager
- Overrides default LanguageManager to provide configured languages.
Namespace
Drupal\language
Code
public function getDefinedLanguageTypes() { $this->loadLanguageTypesConfiguration(); return $this->languageTypes['all']; }
Please login to continue.