Skip to content

Instantly share code, notes, and snippets.

@dinarcon
Last active August 3, 2019 11:56
Show Gist options
  • Save dinarcon/1421ad601fa94815587cc95f505166a5 to your computer and use it in GitHub Desktop.
Save dinarcon/1421ad601fa94815587cc95f505166a5 to your computer and use it in GitHub Desktop.
id: udm_process_intro
label: 'UD Process Plugins Introduction'
source: ...
process:
type: ...
title:
-
plugin: concat
source:
- first_name
- last_name
delimiter: ' '
-
plugin: callback
callable: mb_strtolower
-
plugin: callback
callable: ucwords
destination: ...
id: udm_process_intro
label: 'UD Process Plugins Introduction'
source:
plugin: embedded_data
data_rows:
-
unique_id: 1
first_name: 'FELIX'
last_name: 'DELATTRE'
-
unique_id: 2
first_name: 'BENJAMIN'
last_name: 'MELANÇON'
-
unique_id: 3
first_name: 'STEFAN'
last_name: 'FREUDENBERG'
ids:
unique_id:
type: integer
process:
type:
plugin: default_value
default_value: page
title:
plugin: concat
source:
- first_name
- last_name
delimiter: ' '
destination:
plugin: 'entity:node'
source: ...
process:
type:
plugin: default_value
default_value: page
destination:
plugin: 'entity:node'
process:
title:
plugin: get
source: creative_title
process:
destination_field:
plugin: plugin_name
config_1: value_1
config_2: value_2
config_3: value_3
process:
title: creative_title
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment