class RouterHelper extends Helper
RouterHelper manages links between pages in a template context.
protected | $charset | from Helper | |
protected | $generator |
setCharset(string $charset) Sets the default charset. | from Helper | |
string | getCharset() Gets the default charset. | from Helper |
__construct(UrlGeneratorInterface $router) | ||
string | path(string $name, mixed $parameters = array(), bool $relative = false) Generates a URL reference (as an absolute or relative path) to the route with the given parameters. | |
string | url(string $name, mixed $parameters = array(), bool $schemeRelative = false) Generates a URL reference (as an absolute URL or network path) to the route with the given parameters. | |
string | getName() Returns the canonical name of this helper. |
Sets the default charset.
string | $charset | The charset |
Gets the default charset.
string | The default charset |
UrlGeneratorInterface | $router |
Generates a URL reference (as an absolute or relative path) to the route with the given parameters.
string | $name | The name of the route |
mixed | $parameters | An array of parameters |
bool | $relative | Whether to generate a relative or absolute path |
string | The generated URL reference |
UrlGeneratorInterface |
Generates a URL reference (as an absolute URL or network path) to the route with the given parameters.
string | $name | The name of the route |
mixed | $parameters | An array of parameters |
bool | $schemeRelative | Whether to omit the scheme in the generated URL reference |
string | The generated URL reference |
UrlGeneratorInterface |
Returns the canonical name of this helper.
string | The canonical name |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Bundle/FrameworkBundle/Templating/Helper/RouterHelper.html