Skip to content

Kirby 5.0.4

SettingsButton::find()

Finds a view button by name among the defined buttons from all areas

SettingsButton::find() 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.

SettingsButton::find(string $name, string|null $view = null): Closure|array

Parameters

Name Type Default
$namerequired string no default value
$view stringornull null

Return types

Closureorarray

Parent class

Kirby\Panel\Ui\Buttons\SettingsButton inherited from Kirby\Panel\Ui\Buttons\ViewButton