$fieldsRegistry->add()
Adds the props of the given fields under names that are not taken yet and returns them, keyed by the names they ended up with. A list is keyed by the name in the props.
$fieldsRegistry->add() has been marked as unstable. It might be changed in a future Kirby major or minor release without being considered a breaking change. Use with caution.
$fieldsRegistry->add(array $fields): array
Parameters
| Name | Type | Default |
|---|---|---|
| $fieldsrequired | array |
no default value |
Return type
array<string|int, array>