public function UserSessionStateInterface::switchUserBack in RESTful 7.2
Switch the user to the authenticated user, and back.
This should be called only for an API call. It should not be used for calls via the menu system, as it might be a login request, so we avoid switching back to the anonymous user.
1 method overrides UserSessionStateInterface::switchUserBack()
- UserSessionState::switchUserBack in src/
Authentication/ UserSessionState.php - Switch the user to the authenticated user, and back.
File
- src/
Authentication/ UserSessionStateInterface.php, line 43 - Contains \Drupal\restful\Authentication\UserSessionStateInterface.
Class
- UserSessionStateInterface
- Class UserSessionStateInterface.
Namespace
Drupal\restful\AuthenticationCode
public function switchUserBack();