function LanguageManager::getCurrentLanguage

Same name in other branches
  1. 9 core/lib/Drupal/Core/Language/LanguageManager.php \Drupal\Core\Language\LanguageManager::getCurrentLanguage()
  2. 8.9.x core/lib/Drupal/Core/Language/LanguageManager.php \Drupal\Core\Language\LanguageManager::getCurrentLanguage()
  3. 11.x core/lib/Drupal/Core/Language/LanguageManager.php \Drupal\Core\Language\LanguageManager::getCurrentLanguage()
1 call to LanguageManager::getCurrentLanguage()
LanguageManager::getConfigOverrideLanguage in core/lib/Drupal/Core/Language/LanguageManager.php
1 method overrides LanguageManager::getCurrentLanguage()
ConfigurableLanguageManager::getCurrentLanguage in core/modules/language/src/ConfigurableLanguageManager.php

File

core/lib/Drupal/Core/Language/LanguageManager.php, line 107

Class

LanguageManager
Class responsible for providing language support on language-unaware sites.

Namespace

Drupal\Core\Language

Code

public function getCurrentLanguage($type = LanguageInterface::TYPE_INTERFACE) {
    return $this->getDefaultLanguage();
}

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