You are here

public function DomainLangNegotiationSelectedForm::__construct in Domain Lang 8

Constructs a \Drupal\system\ConfigFormBase object.

Parameters

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

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

Overrides ConfigFormBase::__construct

File

src/Form/DomainLangNegotiationSelectedForm.php, line 38

Class

DomainLangNegotiationSelectedForm
Configure the selected language negotiation method for this site.

Namespace

Drupal\domain_lang\Form

Code

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