function UserLoginForm::create

Same name in other branches
  1. 9 core/modules/user/src/Form/UserLoginForm.php \Drupal\user\Form\UserLoginForm::create()
  2. 8.9.x core/modules/user/src/Form/UserLoginForm.php \Drupal\user\Form\UserLoginForm::create()
  3. 11.x core/modules/user/src/Form/UserLoginForm.php \Drupal\user\Form\UserLoginForm::create()

Overrides FormBase::create

File

core/modules/user/src/Form/UserLoginForm.php, line 88

Class

UserLoginForm
Provides a user login form.

Namespace

Drupal\user\Form

Code

public static function create(ContainerInterface $container) {
    return new static($container->get('user.flood_control'), $container->get('entity_type.manager')
        ->getStorage('user'), $container->get('user.auth'), $container->get('renderer'), $container->get('bare_html_page_renderer'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.