Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. AccountSwitcherInterface.php

function AccountSwitcherInterface::switchBack

Reverts to a previous account after switching.

Return value

$this $this.

Throws

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

2 methods override AccountSwitcherInterface::switchBack()
AccountSwitcher::switchBack in core/lib/Drupal/Core/Session/AccountSwitcher.php
Reverts to a previous account after switching.
AdminAccountSwitcher::switchBack in core/lib/Drupal/Core/DefaultContent/AdminAccountSwitcher.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();

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal