summaryrefslogtreecommitdiff
path: root/modules/fahad/festivals/config/install/migrate_plus.migration.festivals.yml
diff options
context:
space:
mode:
Diffstat (limited to 'modules/fahad/festivals/config/install/migrate_plus.migration.festivals.yml')
-rw-r--r--modules/fahad/festivals/config/install/migrate_plus.migration.festivals.yml61
1 files changed, 61 insertions, 0 deletions
diff --git a/modules/fahad/festivals/config/install/migrate_plus.migration.festivals.yml b/modules/fahad/festivals/config/install/migrate_plus.migration.festivals.yml
new file mode 100644
index 0000000..0493781
--- /dev/null
+++ b/modules/fahad/festivals/config/install/migrate_plus.migration.festivals.yml
@@ -0,0 +1,61 @@
+langcode: en
+status: true
+dependencies: { }
+id: festivals
+class: null
+field_plugin_method: null
+cck_plugin_method: null
+migration_tags: null
+migration_group: null
+label: 'Custom Content migration from CSV FESTIVALS'
+source:
+ plugin: csv
+ path: /var/www/html/project/docroot/festivals.csv
+ header_row_count: 1
+ keys:
+ - id
+ constants:
+ file_source: /var/www/html/project/docroot/fac_images
+ file_dest: 'public://fac_images/'
+process:
+ type:
+ plugin: default_value
+ default_value: festivals
+ source_path:
+ -
+ plugin: skip_on_empty
+ method: process
+ source: phuto
+ -
+ plugin: concat
+ delimiter: /
+ source:
+ - constants/file_source
+ - phuto
+ source_path_two:
+ -
+ plugin: skip_on_empty
+ method: process
+ source: file
+ -
+ plugin: concat
+ delimiter: /
+ source:
+ - constants/file_source
+ - file
+ title: title
+ body: body
+ field_fastival_link: link
+ field_festival_image:
+ plugin: file_import
+ source: '@source_path'
+ destination: constants/file_dest
+ field_festival_file:
+ plugin: file_import
+ source: '@source_path_two'
+ destination: constants/file_dest
+destination:
+ plugin: 'entity:node'
+migration_dependencies:
+ required: { }
+ optional: { }