PageStatusButton::resolve()
Transforms a closure to the actual view button by calling it with the provided arguments
PageStatusButton::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.
PageStatusButton::resolve(Closure $button, Kirby\Cms\ModelWithContent|Kirby\Cms\Language|null $model = null, array $data = [ ]): Kirby\Panel\Ui\Buttons\PageStatusButton|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\PageStatusButtonorarrayornull
Parent class
Kirby\Panel\Ui\Buttons\PageStatusButton
inherited from Kirby\Panel\Ui\Buttons\ViewButton