public LanguageManager::getLanguageTypes()
Returns an array of the available language types.
Return value
array An array of language type machine names.
Overrides LanguageManagerInterface::getLanguageTypes
File
- core/lib/Drupal/Core/Language/LanguageManager.php, line 55
Class
- LanguageManager
- Class responsible for providing language support on language-unaware sites.
Namespace
Drupal\Core\Language
Code
1 2 3 | public function getLanguageTypes() { return array (LanguageInterface::TYPE_INTERFACE, LanguageInterface::TYPE_CONTENT, LanguageInterface::TYPE_URL); } |
Please login to continue.