panel.route:before
return [
'hooks' => [
'panel.route:before' => function (Kirby\Http\Route $route, string $path, string $method) {
// your code goes here
return $route;
}
]
]
Parameters
Parameter | Type |
---|---|
$route | Kirby\Http\Route |
$path | string |
$method | string |