public function AccessAwareRouter::generate in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Routing/AccessAwareRouter.php \Drupal\Core\Routing\AccessAwareRouter::generate()
File
- core/
lib/ Drupal/ Core/ Routing/ AccessAwareRouter.php, line 137
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) {
if ($this->router instanceof UrlGeneratorInterface) {
return $this->router
->generate($name, $parameters, $referenceType);
}
}