You are here

public function EmergencyForm::__construct in Display Suite 8.3

Same name and namespace in other branches
  1. 8.4 src/Form/EmergencyForm.php \Drupal\ds\Form\EmergencyForm::__construct()
  2. 8.2 src/Form/EmergencyForm.php \Drupal\ds\Form\EmergencyForm::__construct()

Constructs a \Drupal\ds\Form\EmergencyForm object.

Parameters

\Drupal\Core\Config\ConfigFactory $config_factory: The config factory.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

\Drupal\Core\State\StateInterface $state: The state key value store.

Overrides ConfigFormBase::__construct

File

src/Form/EmergencyForm.php, line 41

Class

EmergencyForm
Emergency form for DS.

Namespace

Drupal\ds\Form

Code

public function __construct(ConfigFactory $config_factory, ModuleHandlerInterface $module_handler, StateInterface $state) {
  parent::__construct($config_factory);
  $this->moduleHandler = $module_handler;
  $this->state = $state;
}