LanguageManager::getLanguageTypes

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

public function getLanguageTypes() {
  return array(LanguageInterface::TYPE_INTERFACE, LanguageInterface::TYPE_CONTENT, LanguageInterface::TYPE_URL);
}
doc_Drupal
2016-10-29 09:22:38
Comments
Leave a Comment

Please login to continue.