function SwitchUserPageForm::create

Overrides FormBase::create

File

src/Form/SwitchUserPageForm.php, line 29

Class

SwitchUserPageForm
Define an accessible form to switch the user.

Namespace

Drupal\devel\Form

Code

public static function create(ContainerInterface $container) : static {
    $instance = parent::create($container);
    $instance->switchUserListHelper = $container->get('devel.switch_user_list_helper');
    $instance->formBuilder = $container->get('form_builder');
    return $instance;
}