Reference

Kirby::plugin()

Kirby plugin factory and getter

Kirby::plugin(string $name, array $extends = null): Plugin|null

Parameters

Name Type Default Description
$name string
$extends array null

If null is passed it will be used as getter. Otherwise as factory.

Return type

Plugin|null

Source code

kirby/src/Cms/AppPlugins.php#L428