You are here

public function AuthorizationController::setUser in Authorization 8

Set the user.

We pass in the user by hand so we can act on the provisional Drupal user object we have available during login and other operations.

Parameters

\Drupal\user\UserInterface $user: The user to act upon.

File

src/AuthorizationController.php, line 68

Class

AuthorizationController
Authorization controller.

Namespace

Drupal\authorization

Code

public function setUser(UserInterface $user) {
  $this->user = $user;
}