You are here

public function ICalendar::__construct in Opigno calendar event 8

Same name and namespace in other branches
  1. 3.x src/iCal/ICalendar.php \Drupal\opigno_calendar_event\iCal\ICalendar::__construct()

ICalendar constructor.

File

src/iCal/ICalendar.php, line 16

Class

ICalendar
Class ICalendar.

Namespace

Drupal\opigno_calendar_event\iCal

Code

public function __construct($parameters) {
  $parameters += [
    'events' => [],
    'title' => 'Calendar',
    'author' => 'Calender Generator',
  ];
  $this->events = $parameters['events'];
  $this->title = $parameters['title'];
  $this->author = $parameters['author'];
}