RoutingEvents.php 744 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
<?php

/**
 * @file
 * Definition of \Drupal\Core\Routing\RoutingEvents.
 */

namespace Drupal\Core\Routing;

/**
 * Contains all events thrown in the core routing component.
 */
final class RoutingEvents {

15 16 17 18 19 20 21
  /**
   * THE DYNAMIC event is fired on a route collection to allow new routes.
   *
   * This event is used to add new routes based upon existing routes.
   */
  const DYNAMIC = 'routing.route_dynamic';

22 23 24 25 26 27 28
  /**
   * 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.
   */
  const ALTER = 'routing.route_alter';

29 30 31 32 33
  /**
   * The FINISHED event is fired when the route building ended.
   */
  const FINISHED = 'routing.route_finished';

34
}