The ALTER event is fired on a route collection to allow changes to routes.
This event is used to process new routes before they get saved.
See also
\Drupal\Core\Routing\RouteBuildEvent
File
- drupal/core/lib/Drupal/Core/Routing/RoutingEvents.php, line 24
- Definition of \Drupal\Core\Routing\RoutingEvents.
Class
- RoutingEvents
- Contains all events thrown in the core routing component.
Namespace
Drupal\Core\Routing
Code
const ALTER = 'routing.route_alter';