function RestAuthenticationController::userLogout

Same name and namespace in other branches
  1. 11.x core/modules/rest/src/Controller/RestAuthenticationController.php \Drupal\rest\Controller\RestAuthenticationController::userLogout()

Logs the user out.

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

File

core/modules/rest/src/Controller/RestAuthenticationController.php, line 243

Class

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

Namespace

Drupal\rest\Controller

Code

protected function userLogout() : void {
  user_logout();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.