public function ICal::buildICalEvent in Opigno calendar event 3.x
Same name and namespace in other branches
- 8 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();
}