$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 | array<string, Kirby\Plugin\Plugin>ornull |
null
|
Can be used to overwrite the plugins registry |
Return type
array<string, Kirby\Plugin\Plugin>