You are here

public function LanguageDefault::set 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::set()

Sets the default language.

Parameters

\Drupal\Core\Language\LanguageInterface $language: The default language.

1 call to LanguageDefault::set()
LanguageDefault::__construct in core/lib/Drupal/Core/Language/LanguageDefault.php
Constructs the default language object.

File

core/lib/Drupal/Core/Language/LanguageDefault.php, line 55
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 set(LanguageInterface $language) {
  $this->language = $language;
}