public TwigExtension::getPath($name, $parameters = array(), $options = array())
Generates a URL path given a route name and parameters.
$name: The name of the route.
array $parameters: An associative array of route parameters names and values.
array $options: (optional) An associative array of additional options. The 'absolute' option is forced to be FALSE.
string The generated URL path (relative URL) for the given route.
\Drupal\Core\Routing\UrlGeneratorInterface::generateFromRoute()
public function getPath($name, $parameters = array(), $options = array()) { $options['absolute'] = FALSE; return $this->urlGenerator->generateFromRoute($name, $parameters, $options); }
© 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!Template!TwigExtension.php/function/TwigExtension::getPath/8.1.x