You are here

public function JwtAuthValidEvent::setUser in JSON Web Token Authentication (JWT) 8.0

Same name and namespace in other branches
  1. 8 src/Authentication/Event/JwtAuthValidEvent.php \Drupal\jwt\Authentication\Event\JwtAuthValidEvent::setUser()

Sets the authenticated user that will be used for this request.

Parameters

\Drupal\user\UserInterface $user: A loaded user object.

File

src/Authentication/Event/JwtAuthValidEvent.php, line 36

Class

JwtAuthValidEvent
Class JwtAuthValidEvent.

Namespace

Drupal\jwt\Authentication\Event

Code

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