function LanguageManager::getLanguageTypes

Same name in other branches
  1. 9 core/lib/Drupal/Core/Language/LanguageManager.php \Drupal\Core\Language\LanguageManager::getLanguageTypes()
  2. 10 core/lib/Drupal/Core/Language/LanguageManager.php \Drupal\Core\Language\LanguageManager::getLanguageTypes()
  3. 11.x core/lib/Drupal/Core/Language/LanguageManager.php \Drupal\Core\Language\LanguageManager::getLanguageTypes()

Overrides LanguageManagerInterface::getLanguageTypes

1 call to LanguageManager::getLanguageTypes()
ConfigurableLanguageManager::loadLanguageTypesConfiguration in core/modules/language/src/ConfigurableLanguageManager.php
Retrieves language types from the configuration storage.
1 method overrides LanguageManager::getLanguageTypes()
ConfigurableLanguageManager::getLanguageTypes in core/modules/language/src/ConfigurableLanguageManager.php
Returns an array of the available language types.

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 [
        LanguageInterface::TYPE_INTERFACE,
        LanguageInterface::TYPE_CONTENT,
        LanguageInterface::TYPE_URL,
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.