public function SwitchUserForm::__construct in Devel 8
Same name and namespace in other branches
- 8.3 src/Form/SwitchUserForm.php \Drupal\devel\Form\SwitchUserForm::__construct()
- 8.2 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:
File
- src/
Form/ SwitchUserForm.php, line 29
Class
- SwitchUserForm
- Defines a form that allows privileged users to generate entities.
Namespace
Drupal\devel\FormCode
public function __construct(CsrfTokenGenerator $csrf_token_generator) {
$this->csrfToken = $csrf_token_generator;
}