W3cubDocs

/Drupal 8

public function LanguageDefault::set

public LanguageDefault::set(LanguageInterface $language)

Sets the default language.

Parameters

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

File

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

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

© 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!LanguageDefault.php/function/LanguageDefault::set/8.1.x