public function Meeting::removeMember in Opigno Moxtra 3.x
Same name and namespace in other branches
- 8 src/Entity/Meeting.php \Drupal\opigno_moxtra\Entity\Meeting::removeMember()
Removes member from the meeting.
Parameters
int $uid: The user ID.
Return value
$this
Overrides MeetingInterface::removeMember
File
- src/
Entity/ Meeting.php, line 240
Class
- Meeting
- Defines the Workspace entity.
Namespace
Drupal\opigno_moxtra\EntityCode
public function removeMember($uid) {
$values = $this
->get('members')
->getValue();
$values = array_filter($values, function ($value) use ($uid) {
return $value['target_id'] != $uid;
});
$this
->set('members', $values);
return $this;
}