Last active
August 9, 2019 04:31
-
-
Save dinarcon/bcbaf9f327ff7b0c6de9f44c9baa98b4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| destination: | |
| plugin: 'entity:node' | |
| default_bundle: article |
This file contains hidden or 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
| $ drush migrate:import udm_dependencies_intro_node --execute-dependencies |
This file contains hidden or 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
| $ drush migrate:import udm_dependencies_intro_image | |
| $ drush migrate:import udm_dependencies_intro_node |
This file contains hidden or 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
| migration_dependencies: | |
| required: | |
| - udm_dependencies_intro_image | |
| optional: [] |
This file contains hidden or 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: | |
| title: name | |
| field_image/target_id: | |
| plugin: migration_lookup | |
| migration: udm_dependencies_intro_image | |
| source: photo_file | |
| field_image/alt: | |
| plugin: concat | |
| source: | |
| - constants/PHOTO_DESCRIPTION_PREFIX | |
| - name | |
| delimiter: ' ' |
This file contains hidden or 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
| source: | |
| constants: | |
| PHOTO_DESCRIPTION_PREFIX: 'Photo of' | |
| plugin: embedded_data | |
| data_rows: | |
| - unique_id: 1 | |
| name: 'Michele Metts' | |
| photo_file: 'P01' | |
| - unique_id: 2 | |
| name: 'David Valdez' | |
| photo_file: 'P03' | |
| - unique_id: 3 | |
| name: 'Clayton Dewey' | |
| photo_file: 'P04' | |
| ids: | |
| unique_id: | |
| type: integer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment