public function getDefaultFlexformValues(array &$fieldArray)
    {
        foreach ($GLOBALS['TCA']['tt_content']['columns']['pi_flexform']['config']['ds'] as $key => $dataStructure) {
            $types = GeneralUtility::trimExplode(',', $key);
            if (($types[0] === $fieldArray['list_type'] || $types[0] === '*') && ($types[1] === $fieldArray['CType'] || $types[1] === '*')) {
                $fieldArray['pi_flexform'] = $this->extractDefaultDataFromDataStructure($dataStructure);
            }
        }
    }
public function getDefaultFlexformValues(array &$fieldArray)
    {
        foreach ($GLOBALS['TCA']['tt_content']['columns']['pi_flexform']['config']['ds'] as $key => $dataStructure) {
            $types = GeneralUtility::trimExplode(',', $key);
            if (($types[0] === $fieldArray['list_type'] || $types[0] === '*') && ($types[1] === $fieldArray['CType'] || $types[1] === '*')) {
                $fieldArray['pi_flexform'] = $this->extractDefaultDataFromDataStructure($dataStructure);
            }
        }
    }
public function getDefaultFlexformValues ( array & $ fieldArray ) { foreach ( $ GLOBALS [ 'TCA' ] [ 'tt_content' ] [ 'columns' ] [ 'pi_flexform' ] [ 'config' ] [ 'ds' ] as $ key => $ dataStructure ) { $ types = GeneralUtility :: trimExplode ( ',' , $ key ) ; if ( ( $ types [ 0 ] === $ fieldArray [ 'list_type' ] || $ types [ 0 ] === '*' ) && ( $ types [ 1 ] === $ fieldArray [ 'CType' ] || $ types [ 1 ] === '*' ) ) { $ fieldArray [ 'pi_flexform' ] = $ this -> extractDefaultDataFromDataStructure ( $ dataStructure ) ; } } }
checks for default flexform values for new records and sets them accordingly

@param array $fieldArray
checks for default flexform values for new records and sets them accordingly