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);
}
doc_Drupal
2016-10-29 09:52:18
Comments
Leave a Comment

Please login to continue.