Skip to content

Kirby 6.0.1

$fields->toArray()

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

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

Parameters

Name Type Default
$map Closureornull null

Return type

array<string, mixed>

Parent class

Kirby\Form\Fields