Skip to content

Kirby 5.0.4

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\ModelWithContentorKirby\Cms\Languageornull null
$data array [ ]

Return types

Kirby\Panel\Ui\Buttons\ViewButtonorarrayornull

Parent class

Kirby\Panel\Ui\Buttons\ViewButton