summaryrefslogtreecommitdiff
path: root/modules/mansimran/testimonials/config/install/migrate_plus.migration.testimonial_2.yml
diff options
context:
space:
mode:
Diffstat (limited to 'modules/mansimran/testimonials/config/install/migrate_plus.migration.testimonial_2.yml')
-rw-r--r--modules/mansimran/testimonials/config/install/migrate_plus.migration.testimonial_2.yml63
1 files changed, 63 insertions, 0 deletions
diff --git a/modules/mansimran/testimonials/config/install/migrate_plus.migration.testimonial_2.yml b/modules/mansimran/testimonials/config/install/migrate_plus.migration.testimonial_2.yml
new file mode 100644
index 0000000..8e509ba
--- /dev/null
+++ b/modules/mansimran/testimonials/config/install/migrate_plus.migration.testimonial_2.yml
@@ -0,0 +1,63 @@
+uuid: 0b678513-347b-4773-9731-1091e135dbda
+langcode: en
+status: true
+id: testimonial_2
+class: null
+field_plugin_method: null
+cck_plugin_method: null
+migration_tags:
+ - CSV
+migration_group: default
+label: testimonial_csv_import2
+source:
+ plugin: csv
+ path: /var/www/Testimonials/testimonial_sample.csv
+ delimiter: ','
+ enclosure: '"'
+ header_row_count: 1
+ keys:
+ - id
+ constants:
+ file_source: /var/www/migrationdata/testimonials
+ file_dest: 'public://testimonials/'
+process:
+ type:
+ plugin: default_value
+ default_value: testimonials
+ source_path:
+ -
+ plugin: skip_on_empty
+ method: process
+ source: photo
+ -
+ plugin: concat
+ delimiter: /
+ source:
+ - constants/file_source
+ - photo
+ title: title
+ body/value: body
+ body/format:
+ plugin: default_value
+ default_value: basic_html
+ field_student_image:
+ plugin: file_import
+ source: '@source_path'
+ destination: constants/file_dest
+ field_program_:
+ plugin: entity_lookup
+ entity_type: taxonomy_term
+ bundle: continent
+ source: country
+ field_country_:
+ plugin: entity_lookup
+ entity_type: taxonomy_term
+ bundle: program_pursuing_
+ source: program
+destination:
+ plugin: 'entity:node'
+ bundle: testimonials
+migration_dependencies:
+ required: { }
+ optional: { }
+