function MatcherDumper::addRoutes

Adds additional routes to be dumped.

Parameters

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

Overrides MatcherDumperInterface::addRoutes

File

core/lib/Drupal/Core/ProxyClass/Routing/MatcherDumper.php, line 73

Class

MatcherDumper
Provides a proxy class for \Drupal\Core\Routing\MatcherDumper.

Namespace

Drupal\Core\ProxyClass\Routing

Code

public function addRoutes(\Symfony\Component\Routing\RouteCollection $routes) {
  return $this->lazyLoadItself()
    ->addRoutes($routes);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.