$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 | array ornull |
null
|
Return types
Kirby\Form\Fields
orarray
This method does not modify the existing $fields
object but returns a new object with the changes applied. Learn more →