You are here

public function ILTResult::setILT 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::setILT()

Sets the ILT entity.

Parameters

\Drupal\opigno_ilt\ILTInterface $opigno_ilt: The ILT entity.

Return value

$this

Overrides ILTResultInterface::setILT

File

src/Entity/ILTResult.php, line 56

Class

ILTResult
Defines the ILT Result entity.

Namespace

Drupal\opigno_ilt\Entity

Code

public function setILT(ILTInterface $opigno_ilt) {
  $this
    ->set('opigno_ilt', $opigno_ilt
    ->id());
  return $this;
}