Skip to content

Kirby 5.0.4

$viewButtons->defaults()

Sets the default buttons

$viewButtons->defaults() 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->defaults(string ...$defaults): Kirby\Panel\Ui\Buttons\ViewButtons

Parameters

Name Type Default
...$defaults string no default value

Return type

Kirby\Panel\Ui\Buttons\ViewButtons

This method modifies the existing $viewbuttons object it is applied to and returns it again.

Parent class

Kirby\Panel\Ui\Buttons\ViewButtons