AccountSwitcher::$accountStack

Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/Session/AccountSwitcher.php \Drupal\Core\Session\AccountSwitcher::accountStack
  2. 10 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.