function 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\ControllerCode
protected function userLogout() {
user_logout();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.