You are here

public function LoginCookie__1_0::switchUserBack in RESTful 7.2

Switches the user back from the original user for the session.

Overrides Resource::switchUserBack

File

src/Plugin/resource/LoginCookie__1_0.php, line 123
Contains \Drupal\restful\Plugin\resource\LoginCookie__1_0.

Class

LoginCookie__1_0
Class LoginCookie__1_0 @package Drupal\restful\Plugin\resource

Namespace

Drupal\restful\Plugin\resource

Code

public function switchUserBack() {

  // We don't want to switch back in this case!
  drupal_save_session(TRUE);
}