function opigno_moxtra_opigno_moxtra_workspace_delete in Opigno Moxtra 8
Same name and namespace in other branches
- 3.x opigno_moxtra.module \opigno_moxtra_opigno_moxtra_workspace_delete()
Implements hook_ENTITY_TYPE_delete().
Deletes collaborative workspace (binder) in the Moxtra.
File
- ./
opigno_moxtra.module, line 743 - Contains opigno_moxtra.module.
Code
function opigno_moxtra_opigno_moxtra_workspace_delete(EntityInterface $entity) {
if (!_opigno_moxtra_is_active()) {
return;
}
/** @var \Drupal\opigno_moxtra\WorkspaceInterface $entity */
$moxtra_api = _opigno_moxtra_get_moxtra_api();
$owner_id = $entity
->getOwnerId();
$binder_id = $entity
->getBinderId();
$moxtra_api
->deleteWorkspace($owner_id, $binder_id);
}