RoutingUtil
in package
Use Utils service instead
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- generateBackendRoute() : string
- Generate a backend route with token and referer.
Properties
$utils
private
Utils
$utils
Methods
__construct()
public
__construct(Utils $utils) : mixed
Parameters
- $utils : Utils
generateBackendRoute()
Generate a backend route with token and referer.
public
generateBackendRoute([array<string|int, mixed> $params = [] ][, bool $addToken = true ][, bool $addReferer = true ][, string $route = 'contao_backend' ]) : string
Use utils service instead
Parameters
- $params : array<string|int, mixed> = []
-
Url-Parameters
- $addToken : bool = true
- $addReferer : bool = true
- $route : string = 'contao_backend'
Tags
Return values
string —The backend route url