public function AuthenticationController::logout in Janrain Registration 8
Logout user from the system.
1 string reference to 'AuthenticationController::logout'
File
- src/
Controller/ AuthenticationController.php, line 111
Class
- AuthenticationController
- Authentication controller.
Namespace
Drupal\janrain_capture\ControllerCode
public function logout() {
user_logout();
return new RedirectResponse(Url::fromRoute('<front>', [], [
'absolute' => TRUE,
])
->toString(), RedirectResponse::HTTP_MOVED_PERMANENTLY);
}