You are here

protected function RouteSubscriber::alterRoutes in Smart Date 3.4.x

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

Code

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