/** * @NoAdminRequired */ public function getEditFormCalendar() { $calId = (int) $this->params('calendarid'); $calendar = CalendarApp::getCalendar($calId, true, true); $params = ['new' => false, 'calendar' => $calendar, 'calendarcolor_options' => CalendarCalendar::getCalendarColorOptions()]; $response = new TemplateResponse($this->appName, 'part.editcalendar', $params, ''); return $response; }