public function CalendarController::redirectToCurrentCalendar in Content Planner 8
Redirect to current Calendar.
Return value
\Symfony\Component\HttpFoundation\RedirectResponse
File
- modules/
content_calendar/ src/ Controller/ CalendarController.php, line 235
Class
- CalendarController
- Class CalendarController.
Namespace
Drupal\content_calendar\ControllerCode
public function redirectToCurrentCalendar() {
$calendar_id = date('Y-n');
return $this
->redirect('content_calendar.calendar', [], [
'fragment' => $calendar_id,
]);
}