You are here

public function MoxtraService::deleteWorkspace in Opigno Moxtra 3.x

Same name and namespace in other branches
  1. 8 src/MoxtraService.php \Drupal\opigno_moxtra\MoxtraService::deleteWorkspace()

Deletes workspace (Moxtra binder).

Parameters

int $owner_id: User ID.

string $binder_id: Binder ID.

Return value

array Response data.

Overrides MoxtraServiceInterface::deleteWorkspace

File

src/MoxtraService.php, line 405

Class

MoxtraService
Implements Moxtra REST API.

Namespace

Drupal\opigno_moxtra

Code

public function deleteWorkspace($owner_id, $binder_id) {
  $url = $this
    ->getDeleteBinderUrl($owner_id, $binder_id);
  return $this->moxtraConnector
    ->request($url, [], 'DELETE');
}