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
# 1) Run the migration. | |
$ drush migrate:import udm_config_json_source_node_local | |
# 2) Rollback migration because the expected results were not obtained. | |
$ drush migrate:rollback udm_config_json_source_node_local | |
# 3) Change the migration definition file in the "config/install" directory. | |
# 4a) Sync configuration by folder using Drush. | |
$ drush config:import --partial --source="modules/custom/ud_migrations/ud_migrations_config_json_source/config/install" |
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
uuid: b744190e-3a48-45c7-97a4-093099ba0547 | |
id: udm_config_json_source_node_local | |
label: 'UD migrations configuration example' | |
dependencies: | |
enforced: | |
module: | |
- ud_migrations_config_json_source |
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: | |
psf_destination_filename: | |
plugin: callback | |
callable: basename | |
source: B # This is the photo URL column. | |
destination: | |
plugin: 'entity:file' |
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
{ | |
"feed": { | |
"entry": [ | |
{ | |
"gsx$uniqueid": { | |
"$t": "1" | |
}, | |
"gsx$name": { | |
"$t": "One Uno Un" | |
}, |
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
source: | |
plugin: url | |
data_fetcher_plugin: http | |
# Choose one data parser. | |
data_parser_plugin: json|simple_xml | |
urls: | |
- https://understanddrupal.com/files/data.json | |
item_selector: /data/udm_root |
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: | |
psf_destination_filename: | |
plugin: callback | |
callable: basename | |
source: src_photo_url |
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: | |
psf_destination_filename: | |
plugin: callback | |
callable: basename | |
source: src_photo_url |
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: | |
psf_destination_filename: | |
plugin: callback | |
callable: basename | |
source: photo_url |
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
pseudo_mbe_book_paragraph: | |
plugin: migration_lookup | |
migration: ud_migrations_paragraph_intro_paragraph | |
source: book_ref | |
field_ud_favorite_book: | |
plugin: sub_process | |
source: | |
- '@pseudo_mbe_book_paragraph' | |
process: | |
target_id: '0' |