You are here

public function LanguageManager::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 46
Contains \Drupal\Core\Language\LanguageManager.

Class

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

Namespace

Drupal\Core\Language

Code

public function __construct(LanguageDefault $default_language) {
  $this->defaultLanguage = $default_language;
}