add new feature to donwload a calendar

This commit is contained in:
2022-03-04 17:06:49 +01:00
parent 6c08d2462a
commit 508439e8cf
8 changed files with 45 additions and 28 deletions

View File

@@ -41,7 +41,7 @@ class Upcoming extends ComponentBase {
];
}
public function events() {
public function getEvents() {
$connector = new GoogleCalendarService();
$maxEvents = $this->property('maxEvents');
$calendarEvents = $connector->allEventList($maxEvents);