I am using migrate source CSV and trying to extract a string which contains multiple key/value pairs of links in format:
"Google.com|https://google.com,Yahoo.com|https://yahoo.com"
I need to save the values into a multiple link field.
The logic I need to run is:
- Explode the string on comma ,
- Iterate each item
- Explode string on pipe |
- Extract index 0
- Store to field_link/title
- Extract index 1
- Store to field_link/uri
I have it working using a custom process plugin but would like to try and achieve this if possible through chaining of the core process plugins in the migration config yml file.
Thanks