LanguageSettingsButton::factory()
Creates new view button by looking up the button in all areas, if referenced by name and resolving to proper instance
LanguageSettingsButton::factory()
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.
LanguageSettingsButton::factory(Closure|array|string|bool $button = true, string|int|null $name = null, string|null $view = null, Kirby\Cms\ModelWithContent|Kirby\Cms\Language|null $model = null, array $data = [ ]): Kirby\Panel\Ui\Buttons\LanguageSettingsButton|null
Parameters
Name | Type | Default |
---|---|---|
$button | Closure orarray orstring orbool |
true
|
$name | string orint ornull |
null
|
$view | string ornull |
null
|
$model | Kirby\Cms\ModelWithContent orKirby\Cms\Language ornull |
null
|
$data | array |
[ ]
|
Return types
Kirby\Panel\Ui\Buttons\LanguageSettingsButton
ornull
Parent class
Kirby\Panel\Ui\Buttons\LanguageSettingsButton
inherited from Kirby\Panel\Ui\Buttons\ViewButton