License::from()
Creates a license instance from a given value
License::from(Kirby\Plugin\Plugin $plugin, Closure|array|string|null $license): Kirby\Plugin\License
Parameters
Name | Type | Default |
---|---|---|
$pluginrequired | Kirby\Plugin\Plugin |
no default value |
$license | Closure orarray orstring ornull |
no default value |