Skip to content

Kirby 4.5.0

panel.route:before

/site/config/config.php
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