You are here

RouterInterface.php in Drupal 7 to 8/9 Module Upgrader 8

File

src/Routing/RouterInterface.php
View source
<?php

namespace Drupal\drupalmoduleupgrader\Routing;


/**
 * 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.
 */
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();

}

Interfaces

Namesort descending Description
RouterInterface 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.