Skip to content

Kirby 6.0.0

$areas->getMethod()

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

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

Parameters

Name Type Default
$methodrequired string no default value

Return types

Closureornull

Parent class

Kirby\Panel\Areas inherited from Kirby\Cms\Collection