Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. EntityRouteAlterSubscriber.php

function EntityRouteAlterSubscriber::getSubscribedEvents

Overrides EventSubscriberInterface::getSubscribedEvents

File

core/lib/Drupal/Core/EventSubscriber/EntityRouteAlterSubscriber.php, line 55

Class

EntityRouteAlterSubscriber
Registers the 'type' of route parameter names that match an entity type.

Namespace

Drupal\Core\EventSubscriber

Code

public static function getSubscribedEvents() : array {
    $events[RoutingEvents::ALTER][] = [
        'onRoutingRouteAlterSetType',
        -150,
    ];
    return $events;
}
RSS feed
Powered by Drupal