function LanguageDefault::__construct

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

Constructs the default language object.

Parameters

array $values: The properties used to construct the default language.

File

core/lib/Drupal/Core/Language/LanguageDefault.php, line 30

Class

LanguageDefault
Provides a simple get and set wrapper to the default language object.

Namespace

Drupal\Core\Language

Code

public function __construct(array $values) {
    $this->set(new Language($values));
}

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