function Router::generate
File
-
core/
lib/ Drupal/ Core/ Routing/ Router.php, line 338
Class
- Router
- Router implementation in Drupal.
Namespace
Drupal\Core\RoutingCode
public function generate($name, $parameters = [], $referenceType = self::ABSOLUTE_PATH) {
@trigger_error('Use the \\Drupal\\Core\\Url object instead', E_USER_DEPRECATED);
return $this->urlGenerator
->generate($name, $parameters, $referenceType);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.