You are here

public function AccountSwitcherInterface::switchBack in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Session/AccountSwitcherInterface.php \Drupal\Core\Session\AccountSwitcherInterface::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.

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 41
Contains \Drupal\Core\Session\AccountSwitcherInterface.

Class

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

Namespace

Drupal\Core\Session

Code

public function switchBack();