Skip to content

Kirby 6.0.0

$dialogRoutes->route()

Creates a single route and injects type and a area id

$dialogRoutes->route(array|string $pattern, Closure $action, string $method = 'GET', bool $auth = true)

Parameters

Name Type Default
$patternrequired arrayorstring no default value
$actionrequired Closure no default value
$method string 'GET'
$auth bool true

Parent class

Kirby\Panel\Routes\DialogRoutes inherited from Kirby\Panel\Routes\Routes