Skip to content

Kirby 4.9.6

$layouts->getMethod()

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

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

Parameters

Name Type Default
$method * string –

Return type

Closure|null

Parent class

Kirby\Cms\Layouts inherited from Kirby\Cms\Collection