Skip to content

Kirby 3.5.7.1

Sane::handler()

Handler getter

Sane::handler(string $type, bool $lazy = false): Kirby\Sane\Handler|null

Parameters

Name Type Default Description
$type * string
$lazy bool false If set to true, null is returned for undefined handlers

Return type

Kirby\Sane\Handler|null

Exceptions

Type Description
Kirby\Exception\NotFoundException If no handler was found and $lazy was set to false

Parent class

Kirby\Sane\Sane