ViewButton::resolve()
Transforms a closure to the actual view button by calling it with the provided arguments
ViewButton::resolve(Closure $button, ModelWithContent|Language|null $model = null, array $data = []): 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\Button\ViewButtonorarrayornull