6 calls to user_logout()

MaintenanceModeSubscriber::onMaintenanceModeRequest in core/modules/user/src/EventSubscriber/MaintenanceModeSubscriber.php
Logout users if site is in maintenance mode and user is not exempt.
RestAuthenticationController::userLogout in core/modules/rest/src/Controller/RestAuthenticationController.php
Logs the user out.
UserAuthenticationController::userLogout in core/modules/user/src/Controller/UserAuthenticationController.php
Logs the user out.
UserController::logout in core/modules/user/src/Controller/UserController.php
Logs the current user out.
UserController::resetPass in core/modules/user/src/Controller/UserController.php
Redirects to the user password reset form.
UserLogoutConfirm::submitForm in core/modules/user/src/Form/UserLogoutConfirm.php
Form submission handler.

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