Created
September 13, 2016 15:45
-
-
Save mikeryan776/0691a5fe9fc1aadc91efce0f473ff139 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
process: | |
... | |
'field_address/country_code': | |
plugin: default_value | |
default_value: US | |
'field_address/langcode': | |
plugin: default_value | |
default_value: en | |
'field_address/address_line1': AddressLineOne | |
'field_address/address_line2': AddressLineTwo | |
'field_address/locality': City | |
# This has the form US-IN. | |
'field_address/administrative_area': | |
plugin: concat | |
delimiter: - | |
source: | |
- '@field_address/country_code' | |
- State | |
'field_address/postal_code': ZipCode | |
'field_description/value': ClassDescription | |
'field_description/format': | |
plugin: default_value | |
default_value: full_html | |
field_location_name: | |
plugin: entity_generate | |
source: BusinessName | |
field_synchronized_title: ClassName | |
... | |
destination: | |
plugin: 'entity:node' | |
# When overwrite_properties is set, any pre-existing fields on the node other than these will be left alone. | |
overwrite_properties: | |
- 'field_address/address_line1' | |
- 'field_address/address_line2' | |
- 'field_address/locality' | |
- 'field_address/administrative_area' | |
- 'field_address/postal_code' | |
- field_location_name | |
- field_synchronized_title |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
does this work for existing content {not created through migrate}? i cannot seem to get it work. with overwrite_properties set, migrate would still create new nodes.