Skip to content

Kirby 6.0.0

$toggleField->fill()

$toggleField->fill(mixed $value): ToggleField

Parameters

Name Type Default
$valuerequired mixed no default value

Return type

Kirby\Form\Field\ToggleField

This method does not modify the existing $togglefield object but returns a new object with the changes applied. Learn more →

Parent class

Kirby\Form\Field\ToggleField