UserLoginForm::validateName

public UserLoginForm::validateName(array &$form, FormStateInterface $form_state) Sets an error if supplied username has been blocked. File core/modules/user/src/Form/UserLoginForm.php, line 149 Class UserLoginForm Provides a user login form. Namespace Drupal\user\Form Code public function validateName(array &$form, FormStateInterface $form_state) { if (!$form_state->isValueEmpty('name') && user_is_blocked($form_state->getValue('name'))) { // Blocked in user

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

UserLoginForm::validateFinal

public UserLoginForm::validateFinal(array &$form, FormStateInterface $form_state) Checks if user was not authenticated, or if too many logins were attempted. This validation function should always be the last one. File core/modules/user/src/Form/UserLoginForm.php, line 209 Class UserLoginForm Provides a user login form. Namespace Drupal\user\Form Code public function validateFinal(array &$form, FormStateInterface $form_state) { $flood_config = $this->config('user.flood');

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::__construct

public UserLoginForm::__construct(FloodInterface $flood, UserStorageInterface $user_storage, UserAuthInterface $user_auth, RendererInterface $renderer) 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/UserL

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::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::$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::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::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'; }