3 namespace Drupal\Core\Routing;
5 use Symfony\Component\EventDispatcher\Event;
6 use Symfony\Component\Routing\RouteCollection;
9 * Represents route building information as event.
11 class RouteBuildEvent extends Event {
14 * The route collection.
16 * @var \Symfony\Component\Routing\RouteCollection
18 protected $routeCollection;
21 * Constructs a RouteBuildEvent object.
23 * @param \Symfony\Component\Routing\RouteCollection $route_collection
24 * The route collection.
26 public function __construct(RouteCollection $route_collection) {
27 $this->routeCollection = $route_collection;
31 * Gets the route collection.
33 public function getRouteCollection() {
34 return $this->routeCollection;