RouteBuildEvent.php 766 B

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