You are here

public function Workspace::getMembers in Opigno Moxtra 8

Same name and namespace in other branches
  1. 3.x src/Entity/Workspace.php \Drupal\opigno_moxtra\Entity\Workspace::getMembers()

Returns members of the workspace.

Return value

\Drupal\user\Entity\User[] Array of users.

Overrides WorkspaceInterface::getMembers

File

src/Entity/Workspace.php, line 175

Class

Workspace
Defines the Workspace entity.

Namespace

Drupal\opigno_moxtra\Entity

Code

public function getMembers() {
  $ids = $this
    ->getMembersIds();
  return User::loadMultiple($ids);
}