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
1 2 3 4 5 6 7 8 9 | 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 ; } |
Please login to continue.