Skip to content

Kirby 4.2.0

$fields->toArray()

Converts the fields collection to an array and also does that for every included field.

$fields->toArray(?Closure $map = null): array

Parameters

Name Type Default
$map Closure|null null

Return type

array

Parent class

Kirby\Form\Fields