public function DomainLangNegotiationUrlForm::__construct in Domain Lang 8
Constructs a \Drupal\system\ConfigFormBase object.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.
\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.
\Drupal\domain_lang\DomainLangHandlerInterface $domain_lang_handler: The domain lang handler.
Overrides NegotiationUrlForm::__construct
File
- src/
Form/ DomainLangNegotiationUrlForm.php, line 44
Class
- DomainLangNegotiationUrlForm
- Configure the URL language negotiation method for this site.
Namespace
Drupal\domain_lang\FormCode
public function __construct(ConfigFactoryInterface $config_factory, LanguageManagerInterface $language_manager, DomainLangHandlerInterface $domain_lang_handler) {
parent::__construct($config_factory, $language_manager);
$this->domainLangHandler = $domain_lang_handler;
$this->languageNegotiationConfig = $this->domainLangHandler
->getDomainConfigName('language.negotiation');
}