function opigno_moxtra_opigno_moxtra_workspace_delete in Opigno Moxtra 3.x
Same name and namespace in other branches
- 8 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 757 - 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);
}