Skip to content

Kirby 3.8.4

$kirby->extension()

Returns a given extension by type and name

$kirby->extension(string $type, string $name, mixed $fallback = null): mixed

Parameters

Name Type Default Description
$type * string i.e. 'hooks'
$name * string i.e. 'page.delete:before'
$fallback mixed null

Return type

mixed

Parent class

Kirby\Cms\App