protected NullGenerator::getRoute($name)
generate(), generateFromRoute(), and getPathFromRoute() all call this protected method.
Overrides UrlGenerator::getRoute
protected function getRoute($name) { if ($name === '<front>') { return new Route('/'); } elseif ($name === '<current>') { return new Route($this->requestStack->getCurrentRequest()->getPathInfo()); } elseif ($name === '<none>') { return new Route(''); } throw new RouteNotFoundException(); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Routing!NullGenerator.php/function/NullGenerator::getRoute/8.1.x