public function UserSessionStateInterface::switchUser in RESTful 7.2
Make the passed in user to be the account for the Drupal thread.
Parameters
object $account: The account to switch to.
1 method overrides UserSessionStateInterface::switchUser()
- UserSessionState::switchUser in src/
Authentication/ UserSessionState.php - Make the passed in user to be the account for the Drupal thread.
File
- src/
Authentication/ UserSessionStateInterface.php, line 34 - Contains \Drupal\restful\Authentication\UserSessionStateInterface.
Class
- UserSessionStateInterface
- Class UserSessionStateInterface.
Namespace
Drupal\restful\AuthenticationCode
public function switchUser($account);