AccountSettingsForm::buildForm

public AccountSettingsForm::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 ConfigFormBase::buildForm File core/modules/user/src/AccountSettingsForm.php, line 79 Class AccountSettingsForm Configure user settings for this site. Namespace Drupal\user C

AccountSettingsForm::$moduleHandler

The module handler. Type: \Drupal\Core\Extension\ModuleHandlerInterface File core/modules/user/src/AccountSettingsForm.php, line 22 Class AccountSettingsForm Configure user settings for this site. Namespace Drupal\user Code protected $moduleHandler;

AccountSettingsForm

Configure user settings for this site. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Form\ConfigFormBase uses ConfigFormBaseTraitclass \Drupal\user\AccountSettingsForm File core/modules/user/src/AccountSettingsForm.php, line 15 Namespace Drupal\user Members Name Modifiers

AccountSettingsForm::$roleStorage

The role storage used when changing the admin role. Type: \Drupal\user\RoleStorageInterface File core/modules/user/src/AccountSettingsForm.php, line 29 Class AccountSettingsForm Configure user settings for this site. Namespace Drupal\user Code protected $roleStorage;

AccountProxyInterface::setInitialAccountId

public AccountProxyInterface::setInitialAccountId($account_id) Sets the id of the initial account. Never use this method, its sole purpose is to work around weird effects during mid-request container rebuilds. Parameters int $account_id: The id of the initial account. File core/lib/Drupal/Core/Session/AccountProxyInterface.php, line 44 Class AccountProxyInterface Defines an interface for a service which has the current account stored. Namespace Drupal\Core\Session Code public function

AccountProxyInterface::setAccount

public AccountProxyInterface::setAccount(AccountInterface $account) Sets the currently wrapped account. Setting the current account is highly discouraged! Instead, make sure to inject the desired user object into the dependent code directly. A preferable method of account impersonation is to use \Drupal\Core\Session\AccountSwitcherInterface::switchTo() and \Drupal\Core\Session\AccountSwitcherInterface::switchBack(). Parameters \Drupal\Core\Session\AccountInterface $account: The current account

AccountProxyInterface::getAccount

public AccountProxyInterface::getAccount() Gets the currently wrapped account. Return value \Drupal\Core\Session\AccountInterface The current account. File core/lib/Drupal/Core/Session/AccountProxyInterface.php, line 33 Class AccountProxyInterface Defines an interface for a service which has the current account stored. Namespace Drupal\Core\Session Code public function getAccount();

AccountProxyInterface

Defines an interface for a service which has the current account stored. Hierarchy interface \Drupal\Core\Session\AccountInterfaceinterface \Drupal\Core\Session\AccountProxyInterface Related topics User accounts, permissions, and roles API for user accounts, access checking, roles, and permissions. File core/lib/Drupal/Core/Session/AccountProxyInterface.php, line 10 Namespace Drupal\Core\Session Members Name Modifiers Type Description AccountInterface::ANONYMOUS_ROLE co

AccountProxy::isAuthenticated

public AccountProxy::isAuthenticated() Returns TRUE if the account is authenticated. Return value bool TRUE if the account is authenticated. Overrides AccountInterface::isAuthenticated File core/lib/Drupal/Core/Session/AccountProxy.php, line 88 Class AccountProxy A proxied implementation of AccountInterface. Namespace Drupal\Core\Session Code public function isAuthenticated() { return $this->getAccount()->isAuthenticated(); }

AccountProxy::setInitialAccountId

public AccountProxy::setInitialAccountId($account_id) Sets the id of the initial account. Never use this method, its sole purpose is to work around weird effects during mid-request container rebuilds. Parameters int $account_id: The id of the initial account. Overrides AccountProxyInterface::setInitialAccountId File core/lib/Drupal/Core/Session/AccountProxy.php, line 158 Class AccountProxy A proxied implementation of AccountInterface. Namespace Drupal\Core\Session Code public function