function AccountSwitcherInterface::switchBack

Same name in other branches
  1. 9 core/lib/Drupal/Core/Session/AccountSwitcherInterface.php \Drupal\Core\Session\AccountSwitcherInterface::switchBack()
  2. 10 core/lib/Drupal/Core/Session/AccountSwitcherInterface.php \Drupal\Core\Session\AccountSwitcherInterface::switchBack()
  3. 11.x core/lib/Drupal/Core/Session/AccountSwitcherInterface.php \Drupal\Core\Session\AccountSwitcherInterface::switchBack()

Reverts to a previous account after switching.

Return value

$this $this.

Throws

\RuntimeException When there are no more account switches to revert.

1 method overrides AccountSwitcherInterface::switchBack()
AccountSwitcher::switchBack in core/lib/Drupal/Core/Session/AccountSwitcher.php
Reverts to a previous account after switching.

File

core/lib/Drupal/Core/Session/AccountSwitcherInterface.php, line 36

Class

AccountSwitcherInterface
Defines an interface for a service for safe account switching.

Namespace

Drupal\Core\Session

Code

public function switchBack();

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