function _opigno_moxtra_get_workspace in Opigno Moxtra 8
Same name and namespace in other branches
- 3.x opigno_moxtra.module \_opigno_moxtra_get_workspace()
Returns the workspace of the training group.
Parameters
\Drupal\group\Entity\GroupInterface $group: Training group.
Return value
\Drupal\opigno_moxtra\WorkspaceInterface Workspace.
3 calls to _opigno_moxtra_get_workspace()
- opigno_moxtra_group_content_delete in ./
opigno_moxtra.module - Implements hook_ENTITY_TYPE_delete().
- opigno_moxtra_group_content_insert in ./
opigno_moxtra.module - Implements hook_ENTITY_TYPE_insert().
- _opigno_moxtra_get_binder_id in ./
opigno_moxtra.module - Returns the Moxtra binder ID of the workspace of the training group.
File
- ./
opigno_moxtra.module, line 105 - Contains opigno_moxtra.module.
Code
function _opigno_moxtra_get_workspace(GroupInterface $group) {
$id = _opigno_moxtra_get_workspace_id($group);
if (isset($id)) {
return Workspace::load($id);
}
return NULL;
}