You are here

public function SwitchUserForm::__construct in Devel 8

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

Constructs a new SwitchUserForm object.

Parameters

\Drupal\Core\Access\CsrfTokenGenerator $csrf_token_generator:

File

src/Form/SwitchUserForm.php, line 29

Class

SwitchUserForm
Defines a form that allows privileged users to generate entities.

Namespace

Drupal\devel\Form

Code

public function __construct(CsrfTokenGenerator $csrf_token_generator) {
  $this->csrfToken = $csrf_token_generator;
}