class RouterBuiltEvent in Drupal 7 to 8/9 Module Upgrader 8
Event object fired when all routes have been added to a RouterInterface implementation.
Hierarchy
- class \Drupal\drupalmoduleupgrader\Routing\RouterBuiltEvent extends \Symfony\Component\EventDispatcher\Event
Expanded class hierarchy of RouterBuiltEvent
2 files declare their use of RouterBuiltEvent
- RouteWrapper.php in src/
Routing/ Drupal7/ RouteWrapper.php - RouteWrapper.php in src/
Routing/ Drupal8/ RouteWrapper.php
File
- src/
Routing/ RouterBuiltEvent.php, line 11
Namespace
Drupal\drupalmoduleupgrader\RoutingView source
class RouterBuiltEvent extends Event {
/**
* @var \Drupal\drupalmoduleupgrader\Converter\Routing\RouterInterface
*/
protected $router;
/**
* Constructs a RouterBuiltEvent object.
*/
public function __construct(RouterInterface $router) {
$this->router = $router;
}
/**
* Returns the router object.
*
* @return \Drupal\drupalmoduleupgrader\Converter\Routing\RouterInterface
*/
public function getRouter() {
return $this->router;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
RouterBuiltEvent:: |
protected | property | ||
RouterBuiltEvent:: |
public | function | Returns the router object. | |
RouterBuiltEvent:: |
public | function | Constructs a RouterBuiltEvent object. |