You are here

public function Workspace::getMembersIds in Opigno Moxtra 3.x

Same name and namespace in other branches
  1. 8 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\Entity

Code

public function getMembersIds() {
  $values = $this
    ->get('members')
    ->getValue();
  return array_map(function ($value) {
    return $value['target_id'];
  }, $values);
}