public function ApiClient::logout in Rocket.Chat 8
Same name and namespace in other branches
- 8.2 modules/rocket_chat_api/src/RocketChat/ApiClient.php \Drupal\rocket_chat_api\RocketChat\ApiClient::logout()
Logout a session.
Return value
array Result array.
File
- modules/
rocket_chat_api/ src/ RocketChat/ ApiClient.php, line 324
Class
- ApiClient
- Class ApiClient.
Namespace
Drupal\rocket_chat_api\RocketChatCode
public function logout() {
$logoutResult = $this
->postToRocketChat('logout');
if (self::validateReturn($logoutResult)) {
$this->loggedIn = FALSE;
}
return $logoutResult;
}