public function JwtAuthValidEvent::setUser in JSON Web Token Authentication (JWT) 8
Same name and namespace in other branches
- 8.0 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\EventCode
public function setUser(UserInterface $user) {
$this->user = $user;
}