Sane::handler()
Handler getter
Sane::handler(string $type, bool $lazy = false): Kirby\Sane\Handler|null
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $typerequired | string |
no default value | |
| $lazy | bool |
false
|
If set to true, null is returned for undefined handlers |
Return types
Kirby\Sane\Handlerornull
Exceptions
| Type | Description |
|---|---|
Kirby\Exception\NotFoundException |
If no handler was found and $lazy was set to false |