You are here

protected function RouteSubscriber::alterRoutes in Smart Date 8.2

Same name and namespace in other branches
  1. 3.x src/Routing/RouteSubscriber.php \Drupal\smart_date\Routing\RouteSubscriber::alterRoutes()
  2. 3.0.x src/Routing/RouteSubscriber.php \Drupal\smart_date\Routing\RouteSubscriber::alterRoutes()
  3. 3.1.x src/Routing/RouteSubscriber.php \Drupal\smart_date\Routing\RouteSubscriber::alterRoutes()
  4. 3.2.x src/Routing/RouteSubscriber.php \Drupal\smart_date\Routing\RouteSubscriber::alterRoutes()
  5. 3.3.x src/Routing/RouteSubscriber.php \Drupal\smart_date\Routing\RouteSubscriber::alterRoutes()
  6. 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

RouteSubscriber

Namespace

Drupal\smart_date\Routing

Code

protected function alterRoutes(RouteCollection $collection) {
  if ($route = $collection
    ->get('fullcalendar_view.update_event')) {
    $route
      ->setDefault('_controller', "\\Drupal\\smart_date\\Controller\\FullCalendarController::updateEvent");
  }
}