interface RouterInterface in Drupal 7 to 8/9 Module Upgrader 8
Defines a collection of routes, each wrapped by an implementation of RouteWrapperInterface in order to normalize the gaping differences between Drupal 7 and Drupal 8 routes.
Hierarchy
- interface \Drupal\drupalmoduleupgrader\Routing\RouterInterface
Expanded class hierarchy of RouterInterface
All classes that implement RouterInterface
File
- src/
Routing/ RouterInterface.php, line 10
Namespace
Drupal\drupalmoduleupgrader\RoutingView source
interface RouterInterface {
/**
* Adds a wrapped route definition to this router.
*
* @param RouteWrapperInterface $route
* The wrapped route definition.
*/
public function addRoute(RouteWrapperInterface $route);
/**
* Completes the 'build' of this router, dispatching the 'router.built'
* event to all added routes.
*/
public function finalize();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
RouterInterface:: |
public | function | Adds a wrapped route definition to this router. | 1 |
RouterInterface:: |
public | function | Completes the 'build' of this router, dispatching the 'router.built' event to all added routes. | 1 |