function RestAuthenticationController::userLogout
Same name and namespace in other branches
- main core/modules/rest/src/Controller/RestAuthenticationController.php \Drupal\rest\Controller\RestAuthenticationController::userLogout()
Logs the user out.
File
-
core/
modules/ rest/ src/ Controller/ RestAuthenticationController.php, line 263
Class
- RestAuthenticationController
- Provides controllers for login, login status and logout via HTTP requests.
Namespace
Drupal\rest\ControllerCode
protected function userLogout() : void {
user_logout();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.