public function ICal::buildICalEvent in Opigno calendar event 8
Same name and namespace in other branches
- 3.x src/iCal/ICal.php \Drupal\opigno_calendar_event\iCal\ICal::buildICalEvent()
Build iCal file for events.
Parameters
array $params: Params.
Return value
bool|string Calendar event.
File
- src/
iCal/ ICal.php, line 19
Class
- ICal
- Class ICal.
Namespace
Drupal\opigno_calendar_event\iCalCode
public function buildICalEvent(array $params) {
$event = new ICalendarEvent($params);
$params['events'] = [
$event,
];
$calendar = new ICalendar($params);
return $calendar
->generateString();
}