function UserLoginForm::__construct
Same name in other branches
- 9 core/modules/user/src/Form/UserLoginForm.php \Drupal\user\Form\UserLoginForm::__construct()
- 10 core/modules/user/src/Form/UserLoginForm.php \Drupal\user\Form\UserLoginForm::__construct()
- 11.x core/modules/user/src/Form/UserLoginForm.php \Drupal\user\Form\UserLoginForm::__construct()
Constructs a new UserLoginForm.
Parameters
\Drupal\Core\Flood\FloodInterface $flood: The flood service.
\Drupal\user\UserStorageInterface $user_storage: The user storage.
\Drupal\user\UserAuthInterface $user_auth: The user authentication object.
\Drupal\Core\Render\RendererInterface $renderer: The renderer.
File
-
core/
modules/ user/ src/ Form/ UserLoginForm.php, line 62
Class
- UserLoginForm
- Provides a user login form.
Namespace
Drupal\user\FormCode
public function __construct(FloodInterface $flood, UserStorageInterface $user_storage, UserAuthInterface $user_auth, RendererInterface $renderer) {
$this->flood = $flood;
$this->userStorage = $user_storage;
$this->userAuth = $user_auth;
$this->renderer = $renderer;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.