$kirby->plugins()
Loads and returns all plugins in the site/plugins directory Loading only happens on the first call.
$kirby->plugins(array|null $plugins = null): array
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $plugins | arrayornull |
null
|
Can be used to overwrite the plugins registry |
Return type
array
This method modifies the existing $app object it is applied to and returns it again.