Skip to content

Kirby 6.0.0

ModelOpenButton::resolve()

Transforms a closure to the actual view button by calling it with the provided arguments

ModelOpenButton::resolve() has been marked as unstable. It might be changed in a future Kirby major or minor release without being considered a breaking change. Use with caution.

ModelOpenButton::resolve(Closure $button, ModelWithContent|Language|null $model = null, array $data = []): ModelOpenButton|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\Button\ModelOpenButtonorarrayornull

Parent class

Kirby\Panel\Ui\Button\ModelOpenButton inherited from Kirby\Panel\Ui\Button\ViewButton