The current user service. Type:
public AccountSwitcher::__construct(AccountProxyInterface $current_user
A stack of previous overridden accounts. Type: \Drupal\Core\Session\AccountInterface[] File
The original state of session saving prior to account switching. Type: bool File
An implementation of AccountSwitcherInterface. This allows for safe switching of user accounts by ensuring that session data for one user is
public AccountSwitcher::switchTo(AccountInterface $account)
The write-safe session handler. Type:
public AccountSwitcher::switchBack()