summaryrefslogtreecommitdiff
path: root/modules/mansimran/fest/config/install/migrate_plus.migration.fest_1.yml
diff options
context:
space:
mode:
Diffstat (limited to 'modules/mansimran/fest/config/install/migrate_plus.migration.fest_1.yml')
-rw-r--r--modules/mansimran/fest/config/install/migrate_plus.migration.fest_1.yml65
1 files changed, 65 insertions, 0 deletions
diff --git a/modules/mansimran/fest/config/install/migrate_plus.migration.fest_1.yml b/modules/mansimran/fest/config/install/migrate_plus.migration.fest_1.yml
new file mode 100644
index 0000000..64317eb
--- /dev/null
+++ b/modules/mansimran/fest/config/install/migrate_plus.migration.fest_1.yml
@@ -0,0 +1,65 @@
+uuid: 7f27a807-6fa9-4d41-bd21-cc6900ab8293
+langcode: en
+id: fest_1
+status: true
+class: null
+field_plugin_method: null
+cck_plugin_method: null
+migration_tags:
+ - CSV
+migration_group: default
+label: 'fest_csv_import1'
+source:
+ plugin: csv
+ path: /home/mansimran/Desktop/mansimran1/fest.csv
+ delimiter: ','
+ enclosure: '"'
+ header_row_count: 1
+ keys:
+ - id
+ constants:
+ file_source: /var/www/migrationdata/fest
+ file_dest: 'public://fest1/'
+process:
+ type:
+ plugin: default_value
+ default_value: fest
+ source_path:
+ -
+ plugin: skip_on_empty
+ method: process
+ source: pictures
+ -
+ plugin: concat
+ delimiter: /
+ source:
+ - constants/file_source
+ - pictures
+ title: title
+ body/value: body
+ body/format:
+ plugin: default_value
+ default_value: basic_html
+ field_fest_pics:
+ -
+ plugin: explode
+ delimiter: ','
+ source: pictures
+ -
+ plugin: file_import
+ # source: '@source_path'
+ destination: constants/file_dest
+ field_fest_website/uri: website_link
+ field_fest_website/title:
+ plugin: default_value
+ default_value: 'Website Link'
+ field_fest_youtube_link/uri: youtube_link
+ field_fest_youtube_link/title:
+ plugin: default_value
+ default_value: 'Youtube Link'
+destination:
+ plugin: 'entity:node'
+ bundle: fest
+migration_dependencies:
+ required: { }
+ optional: { } \ No newline at end of file