You are here

RouteSubscriber.php in MERCI (Manage Equipment Reservations, Checkout and Inventory) 8.2

File

modules/merci_line_item/src/Routing/RouteSubscriber.php
View source
<?php

namespace Drupal\merci_line_item\Routing;

use Drupal\Core\Routing\RouteSubscriberBase;
use Symfony\Component\Routing\RouteCollection;

/**
 * Listens to the dynamic route events.
 */
class RouteSubscriber extends RouteSubscriberBase {

  /**
   * {@inheritdoc}
   */
  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');
    }
  }

}

Classes

Namesort descending Description
RouteSubscriber Listens to the dynamic route events.