function NegotiationConfigureForm::__construct
Same name and namespace in other branches
- 10 core/modules/language/src/Form/NegotiationConfigureForm.php \Drupal\language\Form\NegotiationConfigureForm::__construct()
- 11.x core/modules/language/src/Form/NegotiationConfigureForm.php \Drupal\language\Form\NegotiationConfigureForm::__construct()
- 9 core/modules/language/src/Form/NegotiationConfigureForm.php \Drupal\language\Form\NegotiationConfigureForm::__construct()
- 8.9.x core/modules/language/src/Form/NegotiationConfigureForm.php \Drupal\language\Form\NegotiationConfigureForm::__construct()
Constructs a NegotiationConfigureForm object.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.
\Drupal\Core\Config\TypedConfigManagerInterface $typedConfigManager: The typed config manager.
\Drupal\language\ConfigurableLanguageManagerInterface $languageManager: The language manager.
\Drupal\language\LanguageNegotiatorInterface $negotiator: The language negotiation methods manager.
\Drupal\Core\Block\BlockManagerInterface $blockManager: The block manager.
\Drupal\Core\Extension\ThemeHandlerInterface $themeHandler: The theme handler.
\Drupal\Core\Entity\EntityStorageInterface $blockStorage: The block storage, or NULL if not available.
Overrides ConfigFormBase::__construct
File
-
core/
modules/ language/ src/ Form/ NegotiationConfigureForm.php, line 50
Class
- NegotiationConfigureForm
- Configure the selected language negotiation method for this site.
Namespace
Drupal\language\FormCode
public function __construct(ConfigFactoryInterface $config_factory, TypedConfigManagerInterface $typedConfigManager, protected ConfigurableLanguageManagerInterface $languageManager, protected LanguageNegotiatorInterface $negotiator, protected BlockManagerInterface $blockManager, protected ThemeHandlerInterface $themeHandler, protected ?EntityStorageInterface $blockStorage = NULL) {
parent::__construct($config_factory, $typedConfigManager);
$this->languageTypes = $this->config('language.types');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.