function SiteMaintenanceModeForm::__construct
Same name in other branches
- 8.9.x core/modules/system/src/Form/SiteMaintenanceModeForm.php \Drupal\system\Form\SiteMaintenanceModeForm::__construct()
- 10 core/modules/system/src/Form/SiteMaintenanceModeForm.php \Drupal\system\Form\SiteMaintenanceModeForm::__construct()
- 11.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\State\StateInterface $state: The state keyvalue collection to use.
\Drupal\user\PermissionHandlerInterface $permission_handler: The permission handler.
Overrides ConfigFormBase::__construct
File
-
core/
modules/ system/ src/ Form/ SiteMaintenanceModeForm.php, line 44
Class
- SiteMaintenanceModeForm
- Configure maintenance settings for this site.
Namespace
Drupal\system\FormCode
public function __construct(ConfigFactoryInterface $config_factory, StateInterface $state, PermissionHandlerInterface $permission_handler) {
parent::__construct($config_factory);
$this->state = $state;
$this->permissionHandler = $permission_handler;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.