You are here

public function RouterInterface::addRoute in Drupal 7 to 8/9 Module Upgrader 8

Adds a wrapped route definition to this router.

Parameters

RouteWrapperInterface $route: The wrapped route definition.

1 method overrides RouterInterface::addRoute()
RouterBase::addRoute in src/Routing/RouterBase.php
Adds a wrapped route definition to this router.

File

src/Routing/RouterInterface.php, line 18

Class

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.

Namespace

Drupal\drupalmoduleupgrader\Routing

Code

public function addRoute(RouteWrapperInterface $route);