You are here

protected function RouteSubscriber::alterRoutes in MERCI (Manage Equipment Reservations, Checkout and Inventory) 8.2

Alters existing routes for a specific collection.

Parameters

\Symfony\Component\Routing\RouteCollection $collection: The route collection for adding routes.

Overrides RouteSubscriberBase::alterRoutes

File

modules/merci_line_item/src/Routing/RouteSubscriber.php, line 16

Class

RouteSubscriber
Listens to the dynamic route events.

Namespace

Drupal\merci_line_item\Routing

Code

protected function alterRoutes(RouteCollection $collection) {

  // Change path '/user/login' to '/login'.
  if ($route = $collection
    ->get('views_bulk_operations.execute_configurable')) {
    $route
      ->setDefault('_form', '\\Drupal\\merci_line_item\\Form\\MerciConfigureAction');
  }
}