UserCancelForm::buildForm

public UserCancelForm::buildForm(array $form, FormStateInterface $form_state) Form constructor. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value array The form structure. Overrides ContentEntityConfirmFormBase::buildForm File core/modules/user/src/Form/UserCancelForm.php, line 71 Class UserCancelForm Provides a confirmation form for cancelling user account. Na

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

public UserCancelForm::getConfirmText() Returns a caption for the button that confirms the action. Return value string The form confirmation text. Overrides ContentEntityConfirmFormBase::getConfirmText File core/modules/user/src/Form/UserCancelForm.php, line 64 Class UserCancelForm Provides a confirmation form for cancelling user account. Namespace Drupal\user\Form Code public function getConfirmText() { return $this->t('Cancel account'); }

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

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

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

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;