AccountSwitcher::$accountStack

Same name in other branches
  1. 9 core/lib/Drupal/Core/Session/AccountSwitcher.php \Drupal\Core\Session\AccountSwitcher::accountStack
  2. 8.9.x core/lib/Drupal/Core/Session/AccountSwitcher.php \Drupal\Core\Session\AccountSwitcher::accountStack
  3. 11.x core/lib/Drupal/Core/Session/AccountSwitcher.php \Drupal\Core\Session\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 = [];

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.