You are here

public function ILT::addNotifiedMember in Opigno Instructor-led Trainings 8

Same name and namespace in other branches
  1. 3.x src/Entity/ILT.php \Drupal\opigno_ilt\Entity\ILT::addNotifiedMember()

Adds recipient for email notification to the ILT.

Parameters

int $uid: The user ID.

Return value

$this

Overrides ILTInterface::addNotifiedMember

File

src/Entity/ILT.php, line 294

Class

ILT
Defines the ILT entity.

Namespace

Drupal\opigno_ilt\Entity

Code

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