RoutingEvents.php 612 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
<?php

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

namespace Drupal\Core\Routing;

/**
 * Contains all events thrown in the core routing component.
 */
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';

26 27 28 29 30
  /**
   * The FINISHED event is fired when the route building ended.
   */
  const FINISHED = 'routing.route_finished';

31
}