You are here

public function SiteMaintenanceModeForm::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 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\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, StateInterface $state, PermissionHandlerInterface $permission_handler) {
  parent::__construct($config_factory);
  $this->state = $state;
  $this->permissionHandler = $permission_handler;
}