2 namespace TYPO3\CMS\Backend\Form\FormDataProvider;
33 $mergedTsConfig = $result[
'pageTsConfig'];
35 if (empty($result[
'pageTsConfig'][
'TCEFORM.']) || !is_array($result[
'pageTsConfig'][
'TCEFORM.'])) {
36 $result[
'pageTsConfig'] = $mergedTsConfig;
40 $mergedTsConfig = $result[
'pageTsConfig'];
41 $type = $result[
'recordTypeValue'];
42 $table = $result[
'tableName'];
45 if (!empty($result[
'pageTsConfig'][
'TCEFORM.'][$table .
'.'])
46 && is_array($result[
'pageTsConfig'][
'TCEFORM.'][$table .
'.'])
48 foreach ($result[
'pageTsConfig'][
'TCEFORM.'][$table .
'.'] as $fieldNameWithDot => $fullFieldConfiguration) {
49 $newFieldConfiguration = $fullFieldConfiguration;
50 if (!empty($fullFieldConfiguration[
'types.']) && is_array($fullFieldConfiguration[
'types.'])) {
51 $typeSpecificConfiguration = $newFieldConfiguration[
'types.'];
52 unset($newFieldConfiguration[
'types.']);
53 if (!empty($typeSpecificConfiguration[$type .
'.']) && is_array($typeSpecificConfiguration[$type .
'.'])) {
57 $mergedTsConfig[
'TCEFORM.'][$table .
'.'][$fieldNameWithDot] = $newFieldConfiguration;
61 $result[
'pageTsConfig'] = $mergedTsConfig;