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\Model orstring |
no default value |
$model | Kirby\Cms\ModelWithContent orKirby\Cms\Language ornull |
null
|
Return type
Kirby\Panel\Ui\Buttons\ViewButtons