Skip to content

Kirby 4.4.1

new Plugin()

new Plugin(string $name, array $extends = [ ], array $info = [ ], ?string $root = null, ?string $version = null)

Parameters

Name Type Default Description
$name * string Plugin name within Kirby (vendor/plugin)
$extends array [ ] Associative array of plugin extensions
$info array [ ]
$root string|null null
$version string|null null

Exceptions

Type Description
Kirby\Exception\InvalidArgumentException If the plugin name has an invalid format

Parent class

Kirby\Cms\Plugin