public function DomainLangNegotiationSessionForm::__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/ DomainLangNegotiationSessionForm.php, line 38
Class
- DomainLangNegotiationSessionForm
- Configure the session language negotiation method for this site.
Namespace
Drupal\domain_lang\FormCode
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');
}