You are here

public function ConfigSubscriber::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/language/src/EventSubscriber/ConfigSubscriber.php \Drupal\language\EventSubscriber\ConfigSubscriber::__construct()

Constructs a new class object.

Parameters

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

\Drupal\Core\Language\LanguageDefault $language_default: The default language.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory.

\Drupal\language\LanguageNegotiatorInterface $language_negotiator: The language negotiator.

File

core/modules/language/src/EventSubscriber/ConfigSubscriber.php, line 73
Contains \Drupal\language\EventSubscriber\ConfigSubscriber.

Class

ConfigSubscriber
Deletes the container if default language has changed.

Namespace

Drupal\language\EventSubscriber

Code

public function __construct(LanguageManagerInterface $language_manager, LanguageDefault $language_default, ConfigFactoryInterface $config_factory, LanguageNegotiatorInterface $language_negotiator) {
  $this->languageManager = $language_manager;
  $this->languageDefault = $language_default;
  $this->configFactory = $config_factory;
  $this->languageNegotiator = $language_negotiator;
}