Upgraded drupal core with security updates
[yaffs-website] / web / core / lib / Drupal / Core / Routing / RouteBuildEvent.php
1 <?php
2
3 namespace Drupal\Core\Routing;
4
5 use Symfony\Component\EventDispatcher\Event;
6 use Symfony\Component\Routing\RouteCollection;
7
8 /**
9  * Represents route building information as event.
10  */
11 class RouteBuildEvent extends Event {
12
13   /**
14    * The route collection.
15    *
16    * @var \Symfony\Component\Routing\RouteCollection
17    */
18   protected $routeCollection;
19
20   /**
21    * Constructs a RouteBuildEvent object.
22    *
23    * @param \Symfony\Component\Routing\RouteCollection $route_collection
24    *   The route collection.
25    */
26   public function __construct(RouteCollection $route_collection) {
27     $this->routeCollection = $route_collection;
28   }
29
30   /**
31    * Gets the route collection.
32    */
33   public function getRouteCollection() {
34     return $this->routeCollection;
35   }
36
37 }