Reference

Guide

$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

Source code

kirby/src/Cms/AppPlugins.php#L272