public function ILT::getCalendarEventId in Opigno Instructor-led Trainings 8
Same name and namespace in other branches
- 3.x src/Entity/ILT.php \Drupal\opigno_ilt\Entity\ILT::getCalendarEventId()
Returns the ID of the related calendar event.
Return value
int|null The ID of the related calendar event, or NULL in case calendar event field has not been set on the entity.
Overrides ILTInterface::getCalendarEventId
File
- src/
Entity/ ILT.php, line 218
Class
- ILT
- Defines the ILT entity.
Namespace
Drupal\opigno_ilt\EntityCode
public function getCalendarEventId() {
return $this
->get('calendar_event')->target_id;
}