public function ILT::setCalendarEventId in Opigno Instructor-led Trainings 8
Same name and namespace in other branches
- 3.x src/Entity/ILT.php \Drupal\opigno_ilt\Entity\ILT::setCalendarEventId()
Sets the ID of the related calendar event.
Parameters
int|null $id: The ID of the related calendar event.
Return value
$this
Overrides ILTInterface::setCalendarEventId
File
- src/
Entity/ ILT.php, line 225
Class
- ILT
- Defines the ILT entity.
Namespace
Drupal\opigno_ilt\EntityCode
public function setCalendarEventId($id) {
$this
->set('calendar_event', [
'target_id' => $id,
]);
return $this;
}