UserPasswordForm::validateForm

public UserPasswordForm::validateForm(array &$form, FormStateInterface $form_state) Form validation 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 FormBase::validateForm File core/modules/user/src/Form/UserPasswordForm.php, line 109 Class UserPasswordForm Provides a user password reset form. Namespace Drupal\user\Form Code public function validate

UserPasswordForm::create

public static UserPasswordForm::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

UserPasswordForm::buildForm

public UserPasswordForm::buildForm(array $form, FormStateInterface $form_state) Parameters \Symfony\Component\HttpFoundation\Request $request: The request object. Overrides FormInterface::buildForm File core/modules/user/src/Form/UserPasswordForm.php, line 67 Class UserPasswordForm Provides a user password reset form. Namespace Drupal\user\Form Code public function buildForm(array $form, FormStateInterface $form_state) { $form['name'] = array( '#type' => 'textfield', '#ti

UserPasswordForm::$userStorage

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

UserPasswordForm

Provides a user password reset form. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\user\Form\UserPasswordForm File core/modules/user/src/Form/UserPasswordForm.php, line 15 Namespace Drupal\user\Form Members Name Modifiers Type Description DependencySerializationTrait::$_se

UserPasswordForm::$languageManager

The language manager. Type: \Drupal\Core\Language\LanguageManagerInterface File core/modules/user/src/Form/UserPasswordForm.php, line 29 Class UserPasswordForm Provides a user password reset form. Namespace Drupal\user\Form Code protected $languageManager;

username.html.twig

Default theme implementation for displaying a username. Available variables: account: The full account information for the user. name: The user's name, sanitized. extra: Additional text to append to the user's name, sanitized. link_path: The path or URL of the user's profile page, home page, or other desired page to link to for more information about the user. link_options: Options to set on the \Drupal\Core\Url object if linking the user's name to the user's page. attributes: HTML attrib

UserMultipleCancelConfirm::__construct

public UserMultipleCancelConfirm::__construct(PrivateTempStoreFactory $temp_store_factory, UserStorageInterface $user_storage, EntityManagerInterface $entity_manager) Constructs a new UserMultipleCancelConfirm. Parameters \Drupal\user\PrivateTempStoreFactory $temp_store_factory: The temp store factory. \Drupal\user\UserStorageInterface $user_storage: The user storage. \Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager. File core/modules/user/src/Form/UserMultipleCan

UserMultipleCancelConfirm::submitForm

public UserMultipleCancelConfirm::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/UserMultipleCancelConfirm.php, line 167 Class UserMultipleCancelConfirm Provides a confirmation form for cancelling multiple user accounts.

USERNAME_MAX_LENGTH

Maximum length of username text field. Keep this under 191 characters so we can use a unique constraint in MySQL. File core/modules/user/user.module, line 32 Enables the user registration and login system. Code const USERNAME_MAX_LENGTH = 60;