function LanguageDefault::set
Same name in other branches
- 9 core/lib/Drupal/Core/Language/LanguageDefault.php \Drupal\Core\Language\LanguageDefault::set()
- 8.9.x core/lib/Drupal/Core/Language/LanguageDefault.php \Drupal\Core\Language\LanguageDefault::set()
- 11.x 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 50
Class
- LanguageDefault
- Provides a simple get and set wrapper to the default language object.
Namespace
Drupal\Core\LanguageCode
public function set(LanguageInterface $language) {
$this->language = $language;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.