Skip to content

Instantly share code, notes, and snippets.

@dinarcon
Created August 30, 2019 10:59
Show Gist options
  • Save dinarcon/1088b83a26fca080902c3e27e6909732 to your computer and use it in GitHub Desktop.
Save dinarcon/1088b83a26fca080902c3e27e6909732 to your computer and use it in GitHub Desktop.
field_tags:
- plugin: skip_on_empty
source: src_fruit_list
method: process
message: 'No src_fruit_list listed.'
- plugin: explode
delimiter: ','
- plugin: callback
callable: trim
- plugin: entity_generate
entity_type: taxonomy_term
value_key: name
bundle_key: vid
bundle: tags
uid:
- plugin: entity_lookup
entity_type: user
value_key: name
source: src_creative_author
- plugin: default_value
default_value: 1
{
"data": {
"udm_nodes": [
{
"unique_id": 1,
"thoughtful_title": "Amazing recipe",
"creative_author": "udm_user",
"fruit_list": "Apple, Pear, Banana"
},
{...},
{...},
{...}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment