summaryrefslogtreecommitdiff
path: root/modules/mansimran/fest/config/install/migrate_plus.migration.fest_1.yml
blob: 64317eb4705bab0e1a245d40e9f8d97e285820ad (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
64
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: {  }