Skip to content

Kirby 6.0.1

$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): array|Fields

Parameters

Name Type Default
$values arrayornull null

Return types

array<string, mixed>orKirby\Form\Fields

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