final class RoutingEvents

Contains all events thrown in the core routing component.

Hierarchy

Expanded class hierarchy of RoutingEvents

3 files declare their use of RoutingEvents
AccessSubscriber.php in drupal/core/lib/Drupal/Core/EventSubscriber/AccessSubscriber.php
Contains Drupal\Core\EventSubscriber\AccessSubscriber.
RouteSubscriber.php in drupal/core/modules/rest/lib/Drupal/rest/EventSubscriber/RouteSubscriber.php
RouteTestSubscriber.php in drupal/core/modules/system/tests/modules/router_test/lib/Drupal/router_test/RouteTestSubscriber.php

File

drupal/core/lib/Drupal/Core/Routing/RoutingEvents.php, line 13
Definition of \Drupal\Core\Routing\RoutingEvents.

Namespace

Drupal\Core\Routing
View source
final class RoutingEvents {

  /**
   * 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 \Drupal\Core\Routing\RouteBuildEvent
   *
   * @var string
   */
  const ALTER = 'routing.route_alter';

  /**
   * The DYNAMIC event is fired to allow modules to register additional routes.
   *
   * Most routes are static, an should be defined as such. Dynamic routes are
   * only those whose existence changes depending on the state of the system
   * at runtime, depending on configuration.
   *
   * @see \Drupal\Core\Routing\RouteBuildEvent
   *
   * @var string
   */
  const DYNAMIC = 'routing.route_dynamic';

}

Members

Namesort descending Modifiers Type Description Overrides
RoutingEvents::ALTER constant The ALTER event is fired on a route collection to allow changes to routes.
RoutingEvents::DYNAMIC constant The DYNAMIC event is fired to allow modules to register additional routes.