You are here

public function ICalendar::__construct in Opigno calendar event 3.x

Same name and namespace in other branches
  1. 8 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'];
}