summaryrefslogtreecommitdiff
path: root/modules/mansimran/testimonials/config/install/migrate_plus.migration.testimonial_2.yml
blob: 8e509ba53654314e3b77887a2edccde22599ca73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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: {  }