You are here

public function AutologoutController::ajaxLogout in Automated Logout 8

AJAX logout.

1 string reference to 'AutologoutController::ajaxLogout'
autologout.routing.yml in ./autologout.routing.yml
autologout.routing.yml

File

src/Controller/AutologoutController.php, line 83

Class

AutologoutController
Returns responses for autologout module routes.

Namespace

Drupal\autologout\Controller

Code

public function ajaxLogout() {
  $this->autoLogoutManager
    ->logout();
  $response = new AjaxResponse();
  $response
    ->setStatusCode(200);
  return $response;
}