When multiples of an item is adding to temporary fields and separated with ::, one paragraph for each is created instead.
This was initially developed to assist with importing data from an old Drupal 7 site into a new Drupal 9 site. One of the fields was a field collection reference on Drupal 7, allowing multiple collections associated with each node, where each collection has two fields. This could not be directly imported with feeds, so the solution included:
- Exporting the data from the old site, where the multiples of each value is separated by ::
- Importing with feeds, with feeds tamper splitting each into multiples of the temporary text fields.
- This module then begins when the node is created, and translates the text fields into the paragraph, including associating those paragraphs with the node.
More on the context and how it was solved will be available soon at https://ryanrobinson.technology.