You are here

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

Listens to the dynamic route events.

Hierarchy

  • class \Drupal\Core\Routing\RouteSubscriberBase implements \Symfony\Component\EventDispatcher\EventSubscriberInterface

Expanded class hierarchy of RouteSubscriber

1 string reference to 'RouteSubscriber'
merci_line_item.services.yml in modules/merci_line_item/merci_line_item.services.yml
modules/merci_line_item/merci_line_item.services.yml
1 service uses RouteSubscriber
merci_line_item.route_subscriber in modules/merci_line_item/merci_line_item.services.yml
Drupal\merci_line_item\Routing\RouteSubscriber

File

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

Namespace

Drupal\merci_line_item\Routing
View source
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');
    }
  }

}

Members

Namesort descending Modifiers Type Description Overrides
RouteSubscriber::alterRoutes protected function Alters existing routes for a specific collection. Overrides RouteSubscriberBase::alterRoutes
RouteSubscriberBase::getSubscribedEvents public static function Returns an array of event names this subscriber wants to listen to. 5
RouteSubscriberBase::onAlterRoutes public function Delegates the route altering to self::alterRoutes(). 1