You are here

public function CalendarEvent::__construct in Calendar 8

CalendarEvent constructor.

File

src/CalendarEvent.php, line 86

Class

CalendarEvent
Defines a calendar event object.

Namespace

Drupal\calendar

Code

public function __construct(ContentEntityInterface $entity) {
  $this->entity = $entity;
}