You are here

public function SiteMaintenanceModeForm::__construct in Zircon Profile 8

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

Overrides ConfigFormBase::__construct

File

core/modules/system/src/Form/SiteMaintenanceModeForm.php, line 36
Contains \Drupal\system\Form\SiteMaintenanceModeForm.

Class

SiteMaintenanceModeForm
Configure maintenance settings for this site.

Namespace

Drupal\system\Form

Code

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