You are here

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

Expanded class hierarchy of RouterInterface

All classes that implement RouterInterface

File

src/Routing/RouterInterface.php, line 10

Namespace

Drupal\drupalmoduleupgrader\Routing
View 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

Namesort descending Modifiers Type Description Overrides
RouterInterface::addRoute public function Adds a wrapped route definition to this router. 1
RouterInterface::finalize public function Completes the 'build' of this router, dispatching the 'router.built' event to all added routes. 1