public UserAuthenticationController::logout()
Logs out a user.
Return value
\Drupal\rest\ResourceResponse The response object.
File
- core/modules/user/src/Controller/UserAuthenticationController.php, line 239
 
Class
- UserAuthenticationController
 - Provides controllers for login, login status and logout via HTTP requests.
 
Namespace
Drupal\user\Controller
Code
public function logout() {
  $this->userLogout();
  return new Response(NULL, 204);
}
Please login to continue.