Symfony\Bundle\FrameworkBundle\Templating\Helper\RouterHelper::generate
Generates a URL from the given parameters.
Signature
public function generate(string
$name,
[mixed
$parameters = UrlGeneratorInterface::ABSOLUTE_PATH,
[Boolean|string
$referenceType = UrlGeneratorInterface::ABSOLUTE_PATH]] )
Parameters
$name
—
string
- The name of the route
$parameters
—
array
- An array of parameters
$referenceType
—
object
- The type of reference (one of the constants in UrlGeneratorInterface)
Returns
- string
- The generated URL