You are here

public function NegotiationConfigureForm::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/language/src/Form/NegotiationConfigureForm.php \Drupal\language\Form\NegotiationConfigureForm::__construct()
  2. 9 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\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 82

Class

NegotiationConfigureForm
Configure the selected language negotiation method for this site.

Namespace

Drupal\language\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, ConfigurableLanguageManagerInterface $language_manager, LanguageNegotiatorInterface $negotiator, BlockManagerInterface $block_manager, ThemeHandlerInterface $theme_handler, EntityStorageInterface $block_storage = NULL) {
  parent::__construct($config_factory);
  $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;
}