2 namespace TYPO3\CMS\Backend\Form\FormDataProvider;
36 foreach ($result[
'processedTca'][
'columns'] as $fieldName => $fieldConfig) {
37 if (empty($fieldConfig[
'config'][
'type']) || $fieldConfig[
'config'][
'type'] !==
'flex') {
63 $result[
'processedTca'][
'columns'][$fieldName][
'config'],
64 $result[
'databaseRow'],
69 if (!is_array($dataStructureArray)) {
70 throw new \UnexpectedValueException(
71 'Data structure error: ' . $dataStructureArray,
75 if (!isset($dataStructureArray[
'meta']) || !is_array($dataStructureArray[
'meta'])) {
76 $dataStructureArray[
'meta'] = array();
79 $result[
'processedTca'][
'columns'][$fieldName][
'config'][
'ds'] = $dataStructureArray;
92 if (!array_key_exists($fieldName, $result[
'databaseRow'])) {
93 $result[
'databaseRow'][$fieldName] =
'';
96 if (isset($result[
'databaseRow'][$fieldName])) {
97 $valueArray = $result[
'databaseRow'][$fieldName];
99 if (!is_array($result[
'databaseRow'][$fieldName])) {
102 if (!is_array($valueArray)) {
105 if (!isset($valueArray[
'data'])) {
106 $valueArray[
'data'] = [];
108 if (!isset($valueArray[
'meta'])) {
109 $valueArray[
'meta'] = [];
111 $result[
'databaseRow'][$fieldName] = $valueArray;
128 $modifiedDataStructure = $result[
'processedTca'][
'columns'][$fieldName][
'config'][
'ds'];
129 if (isset($modifiedDataStructure[
'sheets']) && is_array($modifiedDataStructure[
'sheets'])) {
130 foreach ($modifiedDataStructure[
'sheets'] as $sheetName => $sheetStructure) {
131 if (!is_array($sheetStructure)) {
133 if ($file && @is_file($file)) {
137 $modifiedDataStructure[
'sheets'][$sheetName] = $sheetStructure;
140 $result[
'processedTca'][
'columns'][$fieldName][
'config'][
'ds'] = $modifiedDataStructure;