You are here

public function DomainLangNegotiationBrowserForm::__construct in Domain Lang 8

Constructs a \Drupal\system\ConfigFormBase object.

Parameters

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

\Drupal\language\ConfigurableLanguageManagerInterface $language_manager: The configurable language manager.

\Drupal\domain_lang\DomainLangHandlerInterface $domain_lang_handler: The domain lang handler.

Overrides NegotiationBrowserForm::__construct

File

src/Form/DomainLangNegotiationBrowserForm.php, line 42

Class

DomainLangNegotiationBrowserForm
Configure the browser language negotiation method for this site.

Namespace

Drupal\domain_lang\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, ConfigurableLanguageManagerInterface $language_manager, DomainLangHandlerInterface $domain_lang_handler) {
  parent::__construct($config_factory, $language_manager);
  $this->domainLangHandler = $domain_lang_handler;
  $this->languageMappingsConfig = $this->domainLangHandler
    ->getDomainConfigName('language.mappings');
}