You are here

public function ILT::getCalendarEvent 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::getCalendarEvent()

Returns the entity of the related calendar event.

Return value

\Drupal\opigno_calendar_event\Entity\CalendarEvent|null The entity of the related calendar event, or NULL in case calendar event field has not been set on the entity.

Overrides ILTInterface::getCalendarEvent

File

src/Entity/ILT.php, line 233

Class

ILT
Defines the ILT entity.

Namespace

Drupal\opigno_ilt\Entity

Code

public function getCalendarEvent() {
  return $this
    ->get('calendar_event')->entity;
}