You are here

public function LanguageDefault::__construct in Zircon Profile 8

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

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));
}