Skip to content

Kirby 6.0.0

new ToggleField()

Custom constructors need to pass ...$args on to parent::__construct()

new ToggleField(ModelWithContent|null $model = null, Fields|null $siblings = null, mixed ...$args)

Parameters

Name Type Default
$model Kirby\Cms\ModelWithContentornull null
$siblings Kirby\Form\Fieldsornull null
...$args mixed no default value

Parent class

Kirby\Form\Field\ToggleField inherited from Kirby\Form\Field