function AccessAwareRouter::generate
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Routing/AccessAwareRouter.php \Drupal\Core\Routing\AccessAwareRouter::generate()
- 10 core/lib/Drupal/Core/Routing/AccessAwareRouter.php \Drupal\Core\Routing\AccessAwareRouter::generate()
- 11.x core/lib/Drupal/Core/Routing/AccessAwareRouter.php \Drupal\Core\Routing\AccessAwareRouter::generate()
File
-
core/
lib/ Drupal/ Core/ Routing/ AccessAwareRouter.php, line 138
Class
- AccessAwareRouter
- A router class for Drupal with access check and upcasting.
Namespace
Drupal\Core\RoutingCode
public function generate($name, $parameters = [], $referenceType = self::ABSOLUTE_PATH) : string {
if ($this->router instanceof UrlGeneratorInterface) {
return $this->router
->generate($name, $parameters, $referenceType);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.