Skip to content

Kirby 6.0.1

$fields->toProps()

Returns an array with the props of each field for the frontend

$fields->toProps(bool $defaults = false): array>

Parameters

Name Type Default
$defaults bool false

Return type

array<string, array<string, mixed>>

Parent class

Kirby\Form\Fields