function NegotiationConfigureForm::__construct
Same name in other branches
- 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()
- 11.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 $language_manager: The language manager.
\Drupal\language\LanguageNegotiatorInterface $negotiator: The language negotiation methods manager.
\Drupal\Core\Block\BlockManagerInterface $block_manager: The block manager.
\Drupal\Core\Extension\ThemeHandlerInterface $theme_handler: The theme handler.
\Drupal\Core\Entity\EntityStorageInterface $block_storage: The block storage, or NULL if not available.
Overrides ConfigFormBase::__construct
File
-
core/
modules/ language/ src/ Form/ NegotiationConfigureForm.php, line 85
Class
- NegotiationConfigureForm
- Configure the selected language negotiation method for this site.
Namespace
Drupal\language\FormCode
public function __construct(ConfigFactoryInterface $config_factory, TypedConfigManagerInterface $typedConfigManager, ConfigurableLanguageManagerInterface $language_manager, LanguageNegotiatorInterface $negotiator, BlockManagerInterface $block_manager, ThemeHandlerInterface $theme_handler, ?EntityStorageInterface $block_storage = NULL) {
parent::__construct($config_factory, $typedConfigManager);
$this->languageTypes = $this->config('language.types');
$this->languageManager = $language_manager;
$this->negotiator = $negotiator;
$this->blockManager = $block_manager;
$this->themeHandler = $theme_handler;
$this->blockStorage = $block_storage;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.