FormBuilderField::getChildrenFlat()
Return a flattened (non structured) array of all children
Fieldset structure is instead represented by an opening fieldset which is closed with a field of the same name with '_END' appended to it.
This function also sets a 'level' (integer) and 'parent' (FormBuilderField) to each child, for convenience.
Usage
// basic usage
$array = $formBuilderField->getChildrenFlat();
// usage with all arguments
$array = $formBuilderField->getChildrenFlat(array $options = []);Arguments
| Name | Type(s) | Description |
|---|---|---|
$options (optional) | array |
|
Return value
arrayAssociative array indexed by field name
FormBuilderField methods and properties
API reference based on ProcessWire core version 3.0.253