W3cubDocs

/Drupal 8

public function LanguageManager::__construct

public LanguageManager::__construct(LanguageDefault $default_language)

Constructs the language manager.

Parameters

\Drupal\Core\Language\LanguageDefault $default_language: The default language.

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\Language

Code

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Language!LanguageManager.php/function/LanguageManager::__construct/8.1.x