Skip to content

Kirby 4.1.2

Kirby::plugin()

Kirby plugin factory and getter

Kirby::plugin(string $name, ?array $extends = null): Kirby\Cms\PLugin|null

Parameters

Name Type Default Description
$name * string
$extends array|null null If null is passed it will be used as getter. Otherwise as factory.

Return type

Kirby\Cms\PLugin|null

Exceptions

Parent class

Kirby\Cms\App