final class RoutingEvents (View source)

Contains all events thrown in the core routing component.

Constants

DYNAMIC

Name of the event fired during route collection to allow new routes.

This event is used to add new routes based upon existing routes, giving modules the opportunity to dynamically generate additional routes. The event listener method receives a \Drupal\Core\Routing\RouteBuildEvent instance.

ALTER

Name of the event fired during route collection to allow changes to routes.

This event is used to process new routes before they get saved, giving modules the opportunity to alter routes provided by any other module. The event listener method receives a \Drupal\Core\Routing\RouteBuildEvent instance.

FINISHED

Name of the event fired to indicate route building has ended.

This event gives modules the opportunity to perform some action after route building has completed. The event listener receives a \Drupal\Component\EventDispatcher\Event instance.