- $dataStructureIdentifier = $flexFormTools->getDataStructureIdentifier(
- [ 'config' => $tcaFieldConf ],
- $table,
- $field,
- $row
- );
- $dataStructureArray = $flexFormTools->parseDataStructureByIdentifier($dataStructureIdentifier);
+
+ // Get data structure. The methods may throw various exceptions, with some of them being
+ // ok in certain scenarios, for instance on new record rows. Those are ok to "eat" here
+ // and substitute with a dummy DS.
+ $dataStructureArray = [ 'sheets' => [ 'sDEF' => [] ] ];
+ try {
+ $dataStructureIdentifier = $flexFormTools->getDataStructureIdentifier(
+ [ 'config' => $tcaFieldConf ],
+ $table,
+ $field,
+ $row
+ );
+
+ $dataStructureArray = $flexFormTools->parseDataStructureByIdentifier($dataStructureIdentifier);
+ } catch (InvalidParentRowException $e) {
+ } catch (InvalidParentRowLoopException $e) {
+ } catch (InvalidParentRowRootException $e) {
+ } catch (InvalidPointerFieldValueException $e) {
+ } catch (InvalidIdentifierException $e) {
+ }
+
+ // Get current value array: