ViewButton::resolve()
Transforms a closure to the actual view button by calling it with the provided arguments
ViewButton::resolve(Closure $button, Kirby\Cms\ModelWithContent|Kirby\Cms\Language|null $model = null, array $data = [ ]): Kirby\Panel\Ui\Buttons\ViewButton|array|null
Parameters
Name | Type | Default |
---|---|---|
$buttonrequired | Closure |
no default value |
$model | Kirby\Cms\ModelWithContent orKirby\Cms\Language ornull |
null
|
$data | array |
[ ]
|
Return types
Kirby\Panel\Ui\Buttons\ViewButton
orarray
ornull