$blocks->getMethod()
Returns a registered method by name, either from the current class or from a parent class ordered by inheritance order (top to bottom)
$blocks->getMethod(string $method): Closure|null
Parameters
| Name | Type | Default |
|---|---|---|
| $method * | string |
– |
Return type
Closure|null
Parent class
Kirby\Cms\Blocks inherited from Kirby\Cms\Collection