public function MongodbRouterDumper::addRoutes in MongoDB 8
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
- src/
MongodbRouterDumper.php, line 48 - Definition of Drupal\mongodb\MongoKeyValueFactory.
Class
Namespace
Drupal\mongodbCode
public function addRoutes(RouteCollection $routes) {
if (empty($this->routes)) {
$this->routes = $routes;
}
else {
$this->routes
->addCollection($routes);
}
}