Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NAME, TYPE, COLOR
- apple, fruit, green
- banana, fruit, yellow
- kiwi, fruit, brown
- carrot, vegetable, orange
- potato, vegetable, brown
- id: food
- label: 'Import food nodes'
- source:
- plugin: csv
- path: directory/my_csv_file.csv
- header_row_count: 1
- keys:
- - NAME
- process:
- type:
- plugin: default_value
- default_value: food
- title: NAME
- field_type:
- plugin: entity_generate
- source: TYPE
- field_color:
- plugin: entity_generate
- source: COLOR
- destination:
- plugin: 'entity:node'
Add Comment
Please, Sign In to add comment