You are here

protected function UserSessionState::reset in RESTful 7.2

Reset the initial values.

1 call to UserSessionState::reset()
UserSessionState::switchUserBack in src/Authentication/UserSessionState.php
Switch the user to the authenticated user, and back.

File

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

Class

UserSessionState
Class UserSessionState.

Namespace

Drupal\restful\Authentication

Code

protected function reset() {

  // Reset initial values.
  static::$isSwitched = FALSE;
  $this->originalUser = NULL;
  $this->needsSaving = FALSE;
}