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

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

UserMultipleCancelConfirm::getQuestion

public UserMultipleCancelConfirm::getQuestion() Returns the question to ask the user. Return value string The form question. The page title will be set to this value. Overrides ConfirmFormInterface::getQuestion File core/modules/user/src/Form/UserMultipleCancelConfirm.php, line 76 Class UserMultipleCancelConfirm Provides a confirmation form for cancelling multiple user accounts. Namespace Drupal\user\Form Code public function getQuestion() { return $this->t('Are you sure you want

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;

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

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