LanguageDefault

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

The default language must be provided without dependencies since it is both configured and a dependency of the configuration system. The LanguageDefault object is a container service. The default values are stored on the container by \Drupal\Core\DrupalKernel::buildContainer(). This allows services to override this parameter in a ServiceProvider, for example, \Drupal\language\LanguageServiceProvider::alter().

Hierarchy

File

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

Namespace

Drupal\Core\Language

Members

Name Modifiers Type Description
LanguageDefault::$language protected property The default language.
LanguageDefault::get public function Gets the default language.
LanguageDefault::set public function Sets the default language.
LanguageDefault::__construct public function Constructs the default language object.
doc_Drupal
2016-10-29 09:22:17
Comments
Leave a Comment

Please login to continue.