Skip to content

Kirby 5.0.4

$route->action()

Getter for the action callback

$route->action(): Closure

Return type

Closure

This method modifies the existing $route object it is applied to and returns it again.

Parent class

Kirby\Http\Route