Skip to content

Kirby 4.9.6

$page->getMethod()

Returns a registered method by name, either from the current class or from a parent class ordered by inheritance order (top to bottom)

$page->getMethod(string $method): Closure|null

Parameters

Name Type Default
$method * string –

Return type

Closure|null

Parent class

Kirby\Cms\Page