You are here

public static function UserSessionState::isSwitched in RESTful 7.2

Check if the user has already been switched.

We need this information to perform additional actions the first time a user is switched.

Return value

bool TRUE if the user has been switched previously. FALSE otherwise.

Overrides UserSessionStateInterface::isSwitched

1 call to UserSessionState::isSwitched()
UserSessionState::switchUser in src/Authentication/UserSessionState.php
Make the passed in user to be the account for the Drupal thread.

File

src/Authentication/UserSessionState.php, line 43
Contains \Drupal\restful\Authentication\UserSessionState.

Class

UserSessionState
Class UserSessionState.

Namespace

Drupal\restful\Authentication

Code

public static function isSwitched() {
  return static::$isSwitched;
}