$fields->toArray() Converts the fields collection to an array and also does that for every included field. kirby/src/Form/Fields.php#L47 $fields->toArray(?Closure $map = null): array Parameters Name Type Default $map Closure|null null Return type array Parent class Kirby\Form\Fields