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

UserMultipleCancelConfirm

Provides a confirmation form for cancelling multiple user accounts. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Form\ConfirmFormBase implements ConfirmFormInterfaceclass \Drupal\user\Form\UserMultipleCancelConfirm File core/modules/user/src/Form/UserMultipleCancelConfirm.php, lin

UserMultipleCancelConfirm::$entityManager

The entity manager. Type: \Drupal\Core\Entity\EntityManagerInterface File core/modules/user/src/Form/UserMultipleCancelConfirm.php, line 37 Class UserMultipleCancelConfirm Provides a confirmation form for cancelling multiple user accounts. Namespace Drupal\user\Form Code protected $entityManager;

UserMultipleCancelConfirm::$tempStoreFactory

The temp store factory. Type: \Drupal\user\PrivateTempStoreFactory File core/modules/user/src/Form/UserMultipleCancelConfirm.php, line 23 Class UserMultipleCancelConfirm Provides a confirmation form for cancelling multiple user accounts. Namespace Drupal\user\Form Code protected $tempStoreFactory;

UserMultipleCancelConfirm::$userStorage

The user storage. Type: \Drupal\user\UserStorageInterface File core/modules/user/src/Form/UserMultipleCancelConfirm.php, line 30 Class UserMultipleCancelConfirm Provides a confirmation form for cancelling multiple user accounts. Namespace Drupal\user\Form Code protected $userStorage;

UserMultipleCancelConfirm::buildForm

public UserMultipleCancelConfirm::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 ConfirmFormBase::buildForm File core/modules/user/src/Form/UserMultipleCancelConfirm.php, line 97 Class UserMultipleCancelConfirm Provides a confirmation form for cancellin

UserMultipleCancelConfirm::create

public static UserMultipleCancelConfirm::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: Th

UserMultipleCancelConfirm::getCancelUrl

public UserMultipleCancelConfirm::getCancelUrl() Returns the route to go to if the user cancels the action. Return value \Drupal\Core\Url A URL object. Overrides ConfirmFormInterface::getCancelUrl File core/modules/user/src/Form/UserMultipleCancelConfirm.php, line 83 Class UserMultipleCancelConfirm Provides a confirmation form for cancelling multiple user accounts. Namespace Drupal\user\Form Code public function getCancelUrl() { return new Url('entity.user.collection'); }