src/Forms/FieldList.php
public function flattenFields()
    {
        $fields = [];
        $this->recursiveWalk(function (FormField $field) use (&$fields) {
            $fields[] = $field;
        });
        return static::create($fields);
    }
public function flattenFields()
    {
        $fields = [];
        $this->recursiveWalk(function (FormField $field) use (&$fields) {
            $fields[] = $field;
        });
        return static::create($fields);
    }
public function flattenFields ( ) { $ fields = [ ] ; $ this -> recursiveWalk ( function ( FormField $ field ) use ( & $ fields ) { $ fields [ ] = $ field ; } ) ; return static :: create ( $ fields ) ; }
Return a flattened list of all fields

@return static
Return a flattened list of all fields