public function run() { $calendarEntries = CalendarEntry::getUpcomingEntries($this->contentContainer, $this->daysInFuture, $this->maxEvents); if (count($calendarEntries) == 0) { return; } return $this->render('nextEvents', array('calendarEntries' => $calendarEntries)); }