Classes/Utility/ColumnLayoutUtility.php
public static function hydrateLayoutConfigFlexFormData($flexFormData): array
    {
        $dataStructure = $flexFormData;
        if (is_string($flexFormData)) {
            $dataStructure = GeneralUtility::xml2array($flexFormData);
        }

        // Level: FlexForm Sheets
        return array_map(function ($sheet) {
            // Level: FlexForm Sheet Fields
            return array_map(function ($field) {
                // Level: FlexForm Field
                return $field['vDEF'];
            }, $sheet['lDEF']);
        }, $dataStructure['data']);
    }
public static function hydrateLayoutConfigFlexFormData($flexFormData): array
    {
        $dataStructure = $flexFormData;
        if (is_string($flexFormData)) {
            $dataStructure = GeneralUtility::xml2array($flexFormData);
        }

        // Level: FlexForm Sheets
        return array_map(function ($sheet) {
            // Level: FlexForm Sheet Fields
            return array_map(function ($field) {
                // Level: FlexForm Field
                return $field['vDEF'];
            }, $sheet['lDEF']);
        }, $dataStructure['data']);
    }
public static function hydrateLayoutConfigFlexFormData ( $ flexFormData ) : array { $ dataStructure = $ flexFormData ; if ( is_string ( $ flexFormData ) ) { $ dataStructure = GeneralUtility :: xml2array ( $ flexFormData ) ; } // Level: FlexForm Sheets return array_map ( function ( $ sheet ) { // Level: FlexForm Sheet Fields return array_map ( function ( $ field ) { // Level: FlexForm Field return $ field [ 'vDEF' ] ; } , $ sheet [ 'lDEF' ] ) ; } , $ dataStructure [ 'data' ] ) ; }
Simplify a FlexForm DataStructure array.
Removes all unnecessary sheet, field or value identifiers.

@param string|array $flexFormData either a converted FlexForm array or the raw FlexForm string
@return array simplified FlexForm data structure
Simplify a FlexForm DataStructure array . Removes all unnecessary sheet field or value identifiers .