function LanguageManager::__construct
Same name in other branches
- 9 core/lib/Drupal/Core/Language/LanguageManager.php \Drupal\Core\Language\LanguageManager::__construct()
- 10 core/lib/Drupal/Core/Language/LanguageManager.php \Drupal\Core\Language\LanguageManager::__construct()
- 11.x core/lib/Drupal/Core/Language/LanguageManager.php \Drupal\Core\Language\LanguageManager::__construct()
Constructs the language manager.
Parameters
\Drupal\Core\Language\LanguageDefault $default_language: The default language.
1 method overrides LanguageManager::__construct()
- ConfigurableLanguageManager::__construct in core/
modules/ language/ src/ ConfigurableLanguageManager.php - Constructs a new ConfigurableLanguageManager object.
File
-
core/
lib/ Drupal/ Core/ Language/ LanguageManager.php, line 41
Class
- LanguageManager
- Class responsible for providing language support on language-unaware sites.
Namespace
Drupal\Core\LanguageCode
public function __construct(LanguageDefault $default_language) {
$this->defaultLanguage = $default_language;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.