$name =
$pair[0
];
$route =
$pair[1
];
$collection->
add($name,
$route);
} return $collection;
} /**
* {@inheritdoc}
*/
public function getRouteCollection(): RouteCollection
{ return new LazyRouteCollection($this->routeProvider
);
} /**
* This method is intentionally not implemented.
*
* Use Drupal\Core\Url instead.
*
* @see https://www.drupal.org/node/2820197
*
* @throws \BadMethodCallException
*/