public function AccountSwitcherInterface::switchBack in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Session/AccountSwitcherInterface.php \Drupal\Core\Session\AccountSwitcherInterface::switchBack()
- 9 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.
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\SessionCode
public function switchBack();