You are here

public function SystemStateEdit::__construct in Devel 8

Same name and namespace in other branches
  1. 8.3 src/Form/SystemStateEdit.php \Drupal\devel\Form\SystemStateEdit::__construct()
  2. 8.2 src/Form/SystemStateEdit.php \Drupal\devel\Form\SystemStateEdit::__construct()
  3. 4.x src/Form/SystemStateEdit.php \Drupal\devel\Form\SystemStateEdit::__construct()

Constructs a new SystemStateEdit object.

Parameters

\Drupal\Core\State\StateInterface $state: The state service.

File

src/Form/SystemStateEdit.php, line 31

Class

SystemStateEdit
Form API form to edit a state.

Namespace

Drupal\devel\Form

Code

public function __construct(StateInterface $state) {
  $this->state = $state;
}