You are here

public function Meeting::addMember in Opigno Moxtra 8

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

Adds member to the meeting.

Parameters

int $uid: The user ID.

Return value

$this

Overrides MeetingInterface::addMember

File

src/Entity/Meeting.php, line 232

Class

Meeting
Defines the Workspace entity.

Namespace

Drupal\opigno_moxtra\Entity

Code

public function addMember($uid) {
  $this
    ->get('members')
    ->appendItem([
    'target_id' => $uid,
  ]);
  return $this;
}