Skip to content

Kirby 5.4.2

$lazyCollection->getMethod()

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

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

Parameters

Name Type Default
$methodrequired string no default value

Return types

Closureornull

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

Parent class

Kirby\Cms\LazyCollection inherited from Kirby\Cms\Collection