Kirby::plugin()
Kirby plugin factory and getter
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
Type | Description |
---|---|
Kirby\Exception\DuplicateException |