You are here

public function Nodejs::logoutUser in Node.js integration 8

File

src/Nodejs.php, line 113

Class

Nodejs

Namespace

Drupal\nodejs

Code

public function logoutUser($token) {
  $options = [
    'method' => 'POST',
  ];
  return $this
    ->httpRequest("nodejs/user/logout/{$token}", $options);
}