UserController::$userStorage

The user storage. Type: \Drupal\user\UserStorageInterface File core/modules/user/src/Controller/UserController.php, line 35 Class UserController Controller routines for user routes. Namespace Drupal\user\Controller Code protected $userStorage;

UserController::logout

public UserController::logout() Logs the current user out. Return value \Symfony\Component\HttpFoundation\RedirectResponse A redirection to home page. File core/modules/user/src/Controller/UserController.php, line 280 Class UserController Controller routines for user routes. Namespace Drupal\user\Controller Code public function logout() { user_logout(); return $this->redirect('<front>'); }

UserController::getResetPassForm

public UserController::getResetPassForm(Request $request, $uid) Returns the user password reset form. Parameters \Symfony\Component\HttpFoundation\Request $request: The request. int $uid: User ID of the user requesting reset. Return value array|\Symfony\Component\HttpFoundation\RedirectResponse The form structure or a redirect response. Throws \Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException If the pass_reset_timeout or pass_reset_hash are not available in the session. Or if

UserController::$dateFormatter

The date formatter service. Type: \Drupal\Core\Datetime\DateFormatterInterface File core/modules/user/src/Controller/UserController.php, line 28 Class UserController Controller routines for user routes. Namespace Drupal\user\Controller Code protected $dateFormatter;

UserController::$logger

A logger instance. Type: \Psr\Log\LoggerInterface File core/modules/user/src/Controller/UserController.php, line 49 Class UserController Controller routines for user routes. Namespace Drupal\user\Controller Code protected $logger;

UserController::$userData

The user data service. Type: \Drupal\user\UserDataInterface File core/modules/user/src/Controller/UserController.php, line 42 Class UserController Controller routines for user routes. Namespace Drupal\user\Controller Code protected $userData;

UserController

Controller routines for user routes. Hierarchy class \Drupal\Core\Controller\ControllerBase implements ContainerInjectionInterface uses LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\user\Controller\UserController File core/modules/user/src/Controller/UserController.php, line 21 Namespace Drupal\user\Controller Members Name Modifiers Type Description ControllerBase::$configFactory protected property

UserCancelForm::submitForm

public UserCancelForm::submitForm(array &$form, FormStateInterface $form_state) This is the default entity object builder function. It is called before any other submit handler to build the new entity object to be used by the following submit handlers. At this point of the form workflow the entity is validated and the form state can be updated, this way the subsequently invoked handlers can retrieve a regular entity object to act on. Generally this method should not be overridden unless th

UserCancelForm::getCancelUrl

public UserCancelForm::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/UserCancelForm.php, line 40 Class UserCancelForm Provides a confirmation form for cancelling user account. Namespace Drupal\user\Form Code public function getCancelUrl() { return $this->entity->urlInfo(); }

UserCancelForm::getQuestion

public UserCancelForm::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/UserCancelForm.php, line 30 Class UserCancelForm Provides a confirmation form for cancelling user account. Namespace Drupal\user\Form Code public function getQuestion() { if ($this->entity->id() == $this->currentUser()->id()) { return $thi