You are here

protected function UserAuthenticationController::userLogout in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/user/src/Controller/UserAuthenticationController.php \Drupal\user\Controller\UserAuthenticationController::userLogout()

Logs the user out.

1 call to UserAuthenticationController::userLogout()
UserAuthenticationController::logout in core/modules/user/src/Controller/UserAuthenticationController.php
Logs out a user.

File

core/modules/user/src/Controller/UserAuthenticationController.php, line 313

Class

UserAuthenticationController
Provides controllers for login, login status and logout via HTTP requests.

Namespace

Drupal\user\Controller

Code

protected function userLogout() {
  user_logout();
}