protected function RouteSubscriber::alterRoutes in Smart Date 3.2.x
Same name and namespace in other branches
- 8.2 src/Routing/RouteSubscriber.php \Drupal\smart_date\Routing\RouteSubscriber::alterRoutes()
- 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.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()
Alter existing routes as needed.
Overrides RouteSubscriberBase::alterRoutes
File
- src/
Routing/ RouteSubscriber.php, line 16
Class
- RouteSubscriber
- Conditionally provide routing information.
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");
}
}