function SiteMaintenanceModeForm::__construct

Same name and namespace in other branches
  1. 11.x core/modules/system/src/Form/SiteMaintenanceModeForm.php \Drupal\system\Form\SiteMaintenanceModeForm::__construct()
  2. 10 core/modules/system/src/Form/SiteMaintenanceModeForm.php \Drupal\system\Form\SiteMaintenanceModeForm::__construct()
  3. 9 core/modules/system/src/Form/SiteMaintenanceModeForm.php \Drupal\system\Form\SiteMaintenanceModeForm::__construct()
  4. 8.9.x core/modules/system/src/Form/SiteMaintenanceModeForm.php \Drupal\system\Form\SiteMaintenanceModeForm::__construct()

Constructs a new SiteMaintenanceModeForm.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.

\Drupal\Core\Config\TypedConfigManagerInterface $typedConfigManager: The typed config manager.

\Drupal\Core\State\StateInterface $state: The state keyvalue collection to use.

\Drupal\user\PermissionHandlerInterface $permissionHandler: The permission handler.

Overrides ConfigFormBase::__construct

File

core/modules/system/src/Form/SiteMaintenanceModeForm.php, line 33

Class

SiteMaintenanceModeForm
Configure maintenance settings for this site.

Namespace

Drupal\system\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, TypedConfigManagerInterface $typedConfigManager, protected StateInterface $state, protected PermissionHandlerInterface $permissionHandler) {
  parent::__construct($config_factory, $typedConfigManager);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.