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

public UserPasswordForm::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/UserPasswordForm.php, line 57 Class UserPasswordForm Provides a user password reset form. Namespace Drupal\user\Form Code public function getFormId() { return 'user_pass'; }

UserPasswordForm::submitForm

public UserPasswordForm::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/UserPasswordForm.php, line 135 Class UserPasswordForm Provides a user password reset form. Namespace Drupal\user\Form Code public function submitF

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

public UserPasswordForm::__construct(UserStorageInterface $user_storage, LanguageManagerInterface $language_manager) Constructs a UserPasswordForm object. Parameters \Drupal\user\UserStorageInterface $user_storage: The user storage. \Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager. File core/modules/user/src/Form/UserPasswordForm.php, line 39 Class UserPasswordForm Provides a user password reset form. Namespace Drupal\user\Form Code public functio

UserPasswordResetForm

Form controller for the user password forms. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\user\Form\UserPasswordResetForm File core/modules/user/src/Form/UserPasswordResetForm.php, line 13 Namespace Drupal\user\Form Members Name Modifiers Type Description DependencySerial

UserPasswordResetForm::buildForm

public UserPasswordResetForm::buildForm(array $form, FormStateInterface $form_state, AccountInterface $user = NULL, $expiration_date = NULL, $timestamp = NULL, $hash = NULL) Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. \Drupal\Core\Session\AccountInterface $user: User requesting reset. string $expiration_date: Formatted expiration date for the login link, or NULL if the link d

UserPasswordResetForm::getFormId

public UserPasswordResetForm::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/UserPasswordResetForm.php, line 18 Class UserPasswordResetForm Form controller for the user password forms. Namespace Drupal\user\Form Code public function getFormId() { return 'user_pass_reset'; }

UserPasswordResetForm::submitForm

public UserPasswordResetForm::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/UserPasswordResetForm.php, line 67 Class UserPasswordResetForm Form controller for the user password forms. Namespace Drupal\user\Form Code p