ConfigSubscriber::__construct

public ConfigSubscriber::__construct(LanguageManagerInterface $language_manager, LanguageDefault $language_default, ConfigFactoryInterface $config_factory, LanguageNegotiatorInterface $language_negotiator)

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 68

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;
}
doc_Drupal
2016-10-29 08:54:32
Comments
Leave a Comment

Please login to continue.