You are here

public function LanguageCookieSubscriber::__construct in Language Cookie 8

Constructs a new class object.

Parameters

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

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

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

\Drupal\Core\Executable\ExecutableManagerInterface $plugin_manager: The language cookie condition plugin manager.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

\Drupal\Component\Datetime\TimeInterface $time: The time service.

File

src/EventSubscriber/LanguageCookieSubscriber.php, line 89

Class

LanguageCookieSubscriber
Provides a LanguageCookieSubscriber.

Namespace

Drupal\language_cookie\EventSubscriber

Code

public function __construct(LanguageManagerInterface $language_manager, ConfigFactoryInterface $config_factory, LanguageNegotiatorInterface $language_negotiator, ExecutableManagerInterface $plugin_manager, ModuleHandlerInterface $module_handler, TimeInterface $time) {
  $this->languageManager = $language_manager;
  $this->configFactory = $config_factory;
  $this->languageNegotiator = $language_negotiator;
  $this->languageCookieConditionManager = $plugin_manager;
  $this->moduleHandler = $module_handler;
  $this->time = $time;
}