AccountSwitcher::switchBack

public AccountSwitcher::switchBack() Reverts to a previous account after switching. Return value \Drupal\Core\Session\AccountSwitcherInterface $this. Throws \RuntimeException When there are no more account switches to revert. Overrides AccountSwitcherInterface::switchBack File core/lib/Drupal/Core/Session/AccountSwitcher.php, line 73 Class AccountSwitcher An implementation of AccountSwitcherInterface. Namespace Drupal\Core\Session Code public function switchBack() { // Restore the

AccountSwitcher

An implementation of AccountSwitcherInterface. This allows for safe switching of user accounts by ensuring that session data for one user is not leaked in to others. It also provides a stack that allows reverting to a previous user after switching. Hierarchy class \Drupal\Core\Session\AccountSwitcher implements AccountSwitcherInterface File core/lib/Drupal/Core/Session/AccountSwitcher.php, line 12 Namespace Drupal\Core\Session Members Name Modifiers Type Description AccountSwi

AccountSwitcher::$currentUser

The current user service. Type: \Drupal\Core\Session\AccountProxyInterface File core/lib/Drupal/Core/Session/AccountSwitcher.php, line 26 Class AccountSwitcher An implementation of AccountSwitcherInterface. Namespace Drupal\Core\Session Code protected $currentUser = array();

AccountSwitcher::$originalSessionSaving

The original state of session saving prior to account switching. Type: bool File core/lib/Drupal/Core/Session/AccountSwitcher.php, line 40 Class AccountSwitcher An implementation of AccountSwitcherInterface. Namespace Drupal\Core\Session Code protected $originalSessionSaving;

AccountSettingsForm::__construct

public AccountSettingsForm::__construct(ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler, RoleStorageInterface $role_storage) Constructs a \Drupal\user\AccountSettingsForm object. Parameters \Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects. \Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler. \Drupal\user\RoleStorageInterface $role_storage: The role storage. Overrides ConfigFormBase::__

AccountSwitcher::$accountStack

A stack of previous overridden accounts. Type: \Drupal\Core\Session\AccountInterface[] File core/lib/Drupal/Core/Session/AccountSwitcher.php, line 19 Class AccountSwitcher An implementation of AccountSwitcherInterface. Namespace Drupal\Core\Session Code protected $accountStack = array();

AccountSettingsForm::getFormId

public AccountSettingsForm::getFormId() Returns a unique string identifying the form. Return value string The unique string identifying the form. Overrides FormInterface::getFormId File core/modules/user/src/AccountSettingsForm.php, line 61 Class AccountSettingsForm Configure user settings for this site. Namespace Drupal\user Code public function getFormId() { return 'user_admin_settings'; }

AccountSettingsForm::submitForm

public AccountSettingsForm::submitForm(array &$form, FormStateInterface $form_state) Form submission handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides ConfigFormBase::submitForm File core/modules/user/src/AccountSettingsForm.php, line 425 Class AccountSettingsForm Configure user settings for this site. Namespace Drupal\user Code public function submi

AccountSettingsForm::getEditableConfigNames

protected AccountSettingsForm::getEditableConfigNames() Gets the configuration names that will be editable. Return value array An array of configuration object names that are editable if called in conjunction with the trait's config() method. Overrides ConfigFormBaseTrait::getEditableConfigNames File core/modules/user/src/AccountSettingsForm.php, line 68 Class AccountSettingsForm Configure user settings for this site. Namespace Drupal\user Code protected function getEditableConfigName

AccountSettingsForm::create

public static AccountSettingsForm::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 serv