ViewButtons::view()
Creates new instance for a view with special support for model views
ViewButtons::view() 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.
ViewButtons::view(Kirby\Panel\Model|string $view, Kirby\Cms\ModelWithContent|Kirby\Cms\Language|null $model = null): Kirby\Panel\Ui\Buttons\ViewButtons
Parameters
| Name | Type | Default |
|---|---|---|
| $viewrequired | Kirby\Panel\Modelorstring |
no default value |
| $model | Kirby\Cms\ModelWithContentorKirby\Cms\Languageornull |
null
|
Return type
Kirby\Panel\Ui\Buttons\ViewButtons