public function Workspace::getMembersIds in Opigno Moxtra 8
Same name and namespace in other branches
- 3.x src/Entity/Workspace.php \Drupal\opigno_moxtra\Entity\Workspace::getMembersIds()
Returns ids of the members of the workspace.
Return value
int[] Array of users IDs.
Overrides WorkspaceInterface::getMembersIds
1 call to Workspace::getMembersIds()
- Workspace::getMembers in src/
Entity/ Workspace.php - Returns members of the workspace.
File
- src/
Entity/ Workspace.php, line 165
Class
- Workspace
- Defines the Workspace entity.
Namespace
Drupal\opigno_moxtra\EntityCode
public function getMembersIds() {
$values = $this
->get('members')
->getValue();
return array_map(function ($value) {
return $value['target_id'];
}, $values);
}