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

Provides a confirmation form for cancelling user account. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\Core\Entity\ContentEntityForm implements ContentEntityFormInterfaceclass \Drupal\Core\Entity\ContentEntityConfirmFormBase

UserCancelForm::$entity

The user being cancelled. Type: \Drupal\user\UserInterface Overrides EntityForm::$entity File core/modules/user/src/Form/UserCancelForm.php, line 25 Class UserCancelForm Provides a confirmation form for cancelling user account. Namespace Drupal\user\Form Code protected $entity;

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

Available account cancellation methods. Type: array File core/modules/user/src/Form/UserCancelForm.php, line 18 Class UserCancelForm Provides a confirmation form for cancelling user account. Namespace Drupal\user\Form Code protected $cancelMethods;

UserCacheContextBase

Base class for user-based cache contexts. Subclasses need to implement either \Drupal\Core\Cache\Context\CacheContextInterface or \Drupal\Core\Cache\Context\CalculatedCacheContextInterface. Hierarchy class \Drupal\Core\Cache\Context\UserCacheContextBase File core/lib/Drupal/Core/Cache/Context/UserCacheContextBase.php, line 14 Namespace Drupal\Core\Cache\Context Members Name Modifiers Type Description UserCacheContextBase::$user protected property The account object. Us

UserCacheContextBase::$user

The account object. Type: \Drupal\Core\Session\AccountInterface File core/lib/Drupal/Core/Cache/Context/UserCacheContextBase.php, line 21 Class UserCacheContextBase Base class for user-based cache contexts. Namespace Drupal\Core\Cache\Context Code protected $user;

UserCacheContextBase::__construct

public UserCacheContextBase::__construct(AccountInterface $user) Constructs a new UserCacheContextBase class. Parameters \Drupal\Core\Session\AccountInterface $user: The current user. File core/lib/Drupal/Core/Cache/Context/UserCacheContextBase.php, line 29 Class UserCacheContextBase Base class for user-based cache contexts. Namespace Drupal\Core\Cache\Context Code public function __construct(AccountInterface $user) { $this->user = $user; }

UserAuthInterface::authenticate

public UserAuthInterface::authenticate($username, $password) Validates user authentication credentials. Parameters string $username: The user name to authenticate. string $password: A plain-text password, such as trimmed text from form values. Return value int|bool The user's uid on success, or FALSE on failure to authenticate. File core/modules/user/src/UserAuthInterface.php, line 20 Class UserAuthInterface An interface for validating user authentication credentials. Namespace Drupal