Skip to content

Kirby 5.0.4

$fields->passthrough()

Adds values to the passthrough array which will be added to the form data if the field does not exist

$fields->passthrough(array|null $values = null): Kirby\Form\Fields|array

Parameters

Name Type Default
$values arrayornull null

Return types

Kirby\Form\Fieldsorarray

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

Parent class

Kirby\Form\Fields