function SiteMaintenanceModeForm::__construct
Same name in other branches
- 9 core/modules/system/src/Form/SiteMaintenanceModeForm.php \Drupal\system\Form\SiteMaintenanceModeForm::__construct()
- 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()
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 $permission_handler: The permission handler.
Overrides ConfigFormBase::__construct
File
-
core/
modules/ system/ src/ Form/ SiteMaintenanceModeForm.php, line 47
Class
- SiteMaintenanceModeForm
- Configure maintenance settings for this site.
Namespace
Drupal\system\FormCode
public function __construct(ConfigFactoryInterface $config_factory, TypedConfigManagerInterface $typedConfigManager, StateInterface $state, PermissionHandlerInterface $permission_handler) {
parent::__construct($config_factory, $typedConfigManager);
$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.