NegotiationConfigureForm::__construct

public NegotiationConfigureForm::__construct(ConfigFactoryInterface $config_factory, ConfigurableLanguageManagerInterface $language_manager, LanguageNegotiatorInterface $negotiator, BlockManagerInterface $block_manager, ThemeHandlerInterface $theme_handler, EntityStorageInterface $block_storage = NULL)

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 81

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;
}
doc_Drupal
2016-10-29 09:30:01
Comments
Leave a Comment

Please login to continue.