You are here

public function ILTResult::setUserId in Opigno Instructor-led Trainings 8

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

Sets the user ID.

Parameters

int $uid: The user id.

Return value

$this

Overrides ILTResultInterface::setUserId

File

src/Entity/ILTResult.php, line 101

Class

ILTResult
Defines the ILT Result entity.

Namespace

Drupal\opigno_ilt\Entity

Code

public function setUserId($uid) {
  $this
    ->set('user_id', $uid);
  return $this;
}