public function Meeting::addMember in Opigno Moxtra 3.x
Same name and namespace in other branches
- 8 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\EntityCode
public function addMember($uid) {
$this
->get('members')
->appendItem([
'target_id' => $uid,
]);
return $this;
}