public function MatcherDumper::addRoutes

Adds additional routes to be dumped.

Parameters

Symfony\Component\Routing\RouteCollection $routes: A collection of routes to add to this dumper.

File

drupal/core/lib/Drupal/Core/Routing/MatcherDumper.php, line 68
Definition of Drupal\Core\Routing\MatcherDumper.

Class

MatcherDumper
Dumps Route information to a database table.

Namespace

Drupal\Core\Routing

Code

public function addRoutes(RouteCollection $routes) {
  if (empty($this->routes)) {
    $this->routes = $routes;
  }
  else {
    $this->routes
      ->addCollection($routes);
  }
}