Skip to content

Kirby 5.2.0

$form->fill()

Sets the value for each field with a matching key in the input array

$form->fill(array $input, bool $passthrough = true): Kirby\Form\Form

Parameters

Name Type Default
$inputrequired array no default value
$passthrough bool true

Return type

Kirby\Form\Form

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

Parent class

Kirby\Form\Form