AppPlugins::plugin()
Kirby plugin factory and getter
AppPlugins::plugin(string $name, ?array $extends = null, array $info = [ ], ?string $root = null, ?string $version = 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. |
$info | array |
[ ] |
|
$root | string |null |
null |
|
$version | string |null |
null |
Return type
Kirby\Cms\Plugin
|null
Exceptions
Type | Description |
---|---|
Kirby\Exception\DuplicateException |
Parent class
Kirby\Cms\AppPlugins