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