protected function RouteSubscriber::alterRoutes in Lightning Workflow 8.2
Same name and namespace in other branches
- 8.3 src/Routing/RouteSubscriber.php \Drupal\lightning_workflow\Routing\RouteSubscriber::alterRoutes()
- 8 src/Routing/RouteSubscriber.php \Drupal\lightning_workflow\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 17 
Class
- RouteSubscriber
- Reacts to routing events.
Namespace
Drupal\lightning_workflow\RoutingCode
protected function alterRoutes(RouteCollection $collection) {
  $route = $collection
    ->get('panelizer.panels_ipe.revert_to_default');
  if ($route) {
    $route
      ->setDefault('_controller', PanelizerIPEController::class . '::revertToDefault');
  }
}