You are here

public function Meeting::getMembersIds in Opigno Moxtra 8

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

Returns ids of the members of the meeting.

Return value

int[] Array of users IDs.

Overrides MeetingInterface::getMembersIds

2 calls to Meeting::getMembersIds()
Meeting::getMembers in src/Entity/Meeting.php
Returns members of the meeting.
Meeting::isMember in src/Entity/Meeting.php
Checks if the user is a member of the live meeting or related training.

File

src/Entity/Meeting.php, line 252

Class

Meeting
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);
}