public function UrlGeneratorInterface::generate

Generates a URL from the given parameters.

If the generator is not able to generate the url, it must throw the RouteNotFoundException as documented below.

@api

Parameters

string $name The name of the route:

mixed $parameters An array of parameters:

Boolean $absolute Whether to generate an absolute URL:

Return value

string The generated URL

Throws

RouteNotFoundException if route doesn't exist

2 methods override UrlGeneratorInterface::generate()
Router::generate in drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Router.php
Generates a URL from the given parameters.
UrlGenerator::generate in drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Generator/UrlGenerator.php
Generates a URL from the given parameters.

File

drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Generator/UrlGeneratorInterface.php, line 42

Class

UrlGeneratorInterface
UrlGeneratorInterface is the interface that all URL generator classes must implement.

Namespace

Symfony\Component\Routing\Generator

Code

public function generate($name, $parameters = array(), $absolute = false);