UserController::create

public static UserController::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 c

UserController::confirmCancel

public UserController::confirmCancel(UserInterface $user, $timestamp = 0, $hashed_pass = '') Confirms cancelling a user account via an email link. Parameters \Drupal\user\UserInterface $user: The user account. int $timestamp: The timestamp. string $hashed_pass: The hashed password. Return value \Symfony\Component\HttpFoundation\RedirectResponse A redirect response. File core/modules/user/src/Controller/UserController.php, line 298 Class UserController Controller routines for user routes.

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

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

UserCancelForm::getDescription

public UserCancelForm::getDescription() Returns additional text to display as a description. Return value string The form description. Overrides ContentEntityConfirmFormBase::getDescription File core/modules/user/src/Form/UserCancelForm.php, line 47 Class UserCancelForm Provides a confirmation form for cancelling user account. Namespace Drupal\user\Form Code public function getDescription() { $description = ''; $default_method = $this->config('user.settings')->get('cancel_me