#107493Flexform sections are not initialized in FormEngine for EXT:form content plugin
Description
Trying to create flexform sections in formengine does not work since #107047 – a HTTP/500 error is thrown as an AJAX request complaining about a type error:
https://typo3-core-bugreproduce-base.ddev.site/typo3/ajax/record/flex/containeradd?token=…
```
(1/1) TypeError
Cannot access offset of type string on string
in /var/www/html/typo3-core/typo3/sysext/backend/Classes/Form/FormDataProvider/TcaFlexPrepare.php line 91
```
This stems from the fact that the accessed value:
```
$dataStructureArray = $result[‘processedTca’][‘columns’][$fieldName][‘config’][‘ds’];
```
in line 88 of typo3/sysext/backend/Classes/Form/FormDataProvider/TcaFlexPrepare.php which resolves to a string (the name of the XML flexform file) and not an array with the whole datastructure.
Likely, the whole if() structure of the non-else case before needs to be replicated in the else case as well, to properly resolve the ds structure?
Can be reproduced for example with an EXT:form content plugin, activating form finisher overrides, and then using the “+ recipient” buttons.
This must be specific to EXT:form somehow, because EXT:styleguide “flex – section container” does not exhibit this error.