You are here

public function LanguageNegotiationCookie::__construct in Language Cookie 8

Constructs a new LanguageNegotiationCookie instance.

Parameters

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

\Drupal\Core\PageCache\ResponsePolicy\KillSwitch $page_cache_kill_switch: The page cache kill switch.

File

src/Plugin/LanguageNegotiation/LanguageNegotiationCookie.php, line 57

Class

LanguageNegotiationCookie
Class for identifying language from a language cookie.

Namespace

Drupal\language_cookie\Plugin\LanguageNegotiation

Code

public function __construct(ConfigFactoryInterface $config_factory, KillSwitch $page_cache_kill_switch) {
  $this->configFactory = $config_factory;
  $this->pageCacheKillSwitch = $page_cache_kill_switch;
}