protected function RouteSubscriber::alterRoutes in Smart Date 8.2
Same name and namespace in other branches
- 3.x src/Routing/RouteSubscriber.php \Drupal\smart_date\Routing\RouteSubscriber::alterRoutes()
- 3.0.x src/Routing/RouteSubscriber.php \Drupal\smart_date\Routing\RouteSubscriber::alterRoutes()
- 3.1.x src/Routing/RouteSubscriber.php \Drupal\smart_date\Routing\RouteSubscriber::alterRoutes()
- 3.2.x src/Routing/RouteSubscriber.php \Drupal\smart_date\Routing\RouteSubscriber::alterRoutes()
- 3.3.x src/Routing/RouteSubscriber.php \Drupal\smart_date\Routing\RouteSubscriber::alterRoutes()
- 3.4.x src/Routing/RouteSubscriber.php \Drupal\smart_date\Routing\RouteSubscriber::alterRoutes()
Alters existing routes for a specific collection.
Parameters
\Symfony\Component\Routing\RouteCollection $collection: The route collection for adding routes.
Overrides RouteSubscriberBase::alterRoutes
File
- src/
Routing/ RouteSubscriber.php, line 10
Class
Namespace
Drupal\smart_date\RoutingCode
protected function alterRoutes(RouteCollection $collection) {
if ($route = $collection
->get('fullcalendar_view.update_event')) {
$route
->setDefault('_controller', "\\Drupal\\smart_date\\Controller\\FullCalendarController::updateEvent");
}
}