You are here

public function DomainLangConfigRedirect::__construct in Domain Lang 8

Constructs a new class object.

Parameters

\Drupal\domain\DomainNegotiatorInterface $domain_negotiator: The domain negotiator service.

\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger.

File

src/EventSubscriber/DomainLangConfigRedirect.php, line 44

Class

DomainLangConfigRedirect
Redirect subscriber for control language detection and selection pages.

Namespace

Drupal\domain_lang\EventSubscriber

Code

public function __construct(DomainNegotiatorInterface $domain_negotiator, MessengerInterface $messenger) {
  $this->domainNegotiator = $domain_negotiator;
  $this->messenger = $messenger;
}