You are here

public function Meeting::removeNotifiedMember in Opigno Moxtra 3.x

Same name and namespace in other branches
  1. 8 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\Entity

Code

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