class RouteBuildEvent in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Routing/RouteBuildEvent.php \Drupal\Core\Routing\RouteBuildEvent
Represents route building information as event.
Hierarchy
- class \Symfony\Component\EventDispatcher\Event
- class \Drupal\Core\Routing\RouteBuildEvent
Expanded class hierarchy of RouteBuildEvent
13 files declare their use of RouteBuildEvent
- EntityRouteAlterSubscriber.php in core/
lib/ Drupal/ Core/ EventSubscriber/ EntityRouteAlterSubscriber.php - Contains \Drupal\Core\EventSubscriber\EntityRouteAlterSubscriber.
- EntityRouteProviderSubscriber.php in core/
lib/ Drupal/ Core/ EventSubscriber/ EntityRouteProviderSubscriber.php - Contains \Drupal\Core\EventSubscriber\EntityRouteProviderSubscriber.
- ModuleRouteSubscriberTest.php in core/
tests/ Drupal/ Tests/ Core/ EventSubscriber/ ModuleRouteSubscriberTest.php - Contains \Drupal\Tests\Core\EventSubscriber\ModuleRouteSubscriberTest.
- ParamConverterSubscriber.php in core/
lib/ Drupal/ Core/ EventSubscriber/ ParamConverterSubscriber.php - Contains \Drupal\Core\EventSubscriber\ParamConverterSubscriber.
- PathRootsSubscriber.php in core/
lib/ Drupal/ Core/ EventSubscriber/ PathRootsSubscriber.php - Contains \Drupal\Core\EventSubscriber\PathRootsSubscriber.
File
- core/
lib/ Drupal/ Core/ Routing/ RouteBuildEvent.php, line 16 - Contains \Drupal\Core\Routing\RouteBuildEvent.
Namespace
Drupal\Core\RoutingView source
class RouteBuildEvent extends Event {
/**
* The route collection.
*
* @var \Symfony\Component\Routing\RouteCollection
*/
protected $routeCollection;
/**
* Constructs a RouteBuildEvent object.
*
* @param \Symfony\Component\Routing\RouteCollection $route_collection
* The route collection.
*/
public function __construct(RouteCollection $route_collection) {
$this->routeCollection = $route_collection;
}
/**
* Gets the route collection.
*/
public function getRouteCollection() {
return $this->routeCollection;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Event:: |
private | property | ||
Event:: |
private | property | ||
Event:: |
private | property | ||
Event:: |
public | function | Returns the EventDispatcher that dispatches this Event. | |
Event:: |
public | function | Gets the event's name. | |
Event:: |
public | function | Returns whether further event listeners should be triggered. | |
Event:: |
public | function | Stores the EventDispatcher that dispatches this Event. | |
Event:: |
public | function | Sets the event's name property. | |
Event:: |
public | function | Stops the propagation of the event to further event listeners. | |
RouteBuildEvent:: |
protected | property | The route collection. | |
RouteBuildEvent:: |
public | function | Gets the route collection. | |
RouteBuildEvent:: |
public | function | Constructs a RouteBuildEvent object. |