public function SwitchUserForm::__construct in Devel 8.2
Same name and namespace in other branches
- 8.3 src/Form/SwitchUserForm.php \Drupal\devel\Form\SwitchUserForm::__construct()
- 8 src/Form/SwitchUserForm.php \Drupal\devel\Form\SwitchUserForm::__construct()
- 4.x src/Form/SwitchUserForm.php \Drupal\devel\Form\SwitchUserForm::__construct()
Constructs a new SwitchUserForm object.
Parameters
\Drupal\Core\Access\CsrfTokenGenerator $csrf_token_generator: The CSRF token generator.
File
- src/
Form/ SwitchUserForm.php, line 30
Class
- SwitchUserForm
- Define a form to allow the user to switch and become another user.
Namespace
Drupal\devel\FormCode
public function __construct(CsrfTokenGenerator $csrf_token_generator) {
$this->csrfToken = $csrf_token_generator;
}