UserLoginForm

Provides a user login form. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\user\Form\UserLoginForm File core/modules/user/src/Form/UserLoginForm.php, line 16 Namespace Drupal\user\Form Members Name Modifiers Type Description DependencySerializationTrait::$_serviceIds prot

UserLoginForm::$flood

The flood service. Type: \Drupal\Core\Flood\FloodInterface File core/modules/user/src/Form/UserLoginForm.php, line 23 Class UserLoginForm Provides a user login form. Namespace Drupal\user\Form Code protected $flood;

UserLoginForm::$renderer

The renderer. Type: \Drupal\Core\Render\RendererInterface File core/modules/user/src/Form/UserLoginForm.php, line 44 Class UserLoginForm Provides a user login form. Namespace Drupal\user\Form Code protected $renderer;

UserLoginForm::$userAuth

The user authentication object. Type: \Drupal\user\UserAuthInterface File core/modules/user/src/Form/UserLoginForm.php, line 37 Class UserLoginForm Provides a user login form. Namespace Drupal\user\Form Code protected $userAuth;

UserLoginForm::$userStorage

The user storage. Type: \Drupal\user\UserStorageInterface File core/modules/user/src/Form/UserLoginForm.php, line 30 Class UserLoginForm Provides a user login form. Namespace Drupal\user\Form Code protected $userStorage;

UserLoginForm::buildForm

public UserLoginForm::buildForm(array $form, FormStateInterface $form_state) Form constructor. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value array The form structure. Overrides FormInterface::buildForm File core/modules/user/src/Form/UserLoginForm.php, line 87 Class UserLoginForm Provides a user login form. Namespace Drupal\user\Form Code public function

UserLoginForm::create

public static UserLoginForm::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: The service co

UserLoginForm::getFormId

public UserLoginForm::getFormId() Returns a unique string identifying the form. Return value string The unique string identifying the form. Overrides FormInterface::getFormId File core/modules/user/src/Form/UserLoginForm.php, line 80 Class UserLoginForm Provides a user login form. Namespace Drupal\user\Form Code public function getFormId() { return 'user_login_form'; }

UserLoginForm::submitForm

public UserLoginForm::submitForm(array &$form, FormStateInterface $form_state) Form submission handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormInterface::submitForm File core/modules/user/src/Form/UserLoginForm.php, line 129 Class UserLoginForm Provides a user login form. Namespace Drupal\user\Form Code public function submitForm(array &$fo

UserLoginForm::validateAuthentication

public UserLoginForm::validateAuthentication(array &$form, FormStateInterface $form_state) Checks supplied username/password against local users table. If successful, $form_state->get('uid') is set to the matching user ID. File core/modules/user/src/Form/UserLoginForm.php, line 161 Class UserLoginForm Provides a user login form. Namespace Drupal\user\Form Code public function validateAuthentication(array &$form, FormStateInterface $form_state) { $password = trim($form_stat