function SwitchUserForm::create

Same name in other branches
  1. 8.x-1.x src/Form/SwitchUserForm.php \Drupal\devel\Form\SwitchUserForm::create()
  2. 5.x src/Form/SwitchUserForm.php \Drupal\devel\Form\SwitchUserForm::create()

Overrides FormBase::create

File

src/Form/SwitchUserForm.php, line 38

Class

SwitchUserForm
Define a form to allow the user to switch and become another user.

Namespace

Drupal\devel\Form

Code

public static function create(ContainerInterface $container) {
    return new static($container->get('csrf_token'));
}