summaryrefslogtreecommitdiff
path: root/modules/mansimran/startups/config/install/migrate_plus.migration.startups_1.yml
blob: c90aa0f35f977577642512b31ab592001bb6ab07 (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
uuid: 428450d7-45f6-400c-b7e1-57b14e9d348d
langcode: en
id: startups_1
status: true
class: null
field_plugin_method: null
cck_plugin_method: null
migration_tags:
  - CSV
migration_group: default
label: 'startups_csv_import1'
source:
  plugin: csv
  path: /home/mansimran/Desktop/mansimran1/startups1.csv
  delimiter: ','
  enclosure: '"'
  header_row_count: 1
  keys:
    - id
  constants:
    file_source: /var/www/migrationdata/startups
    file_dest: 'public://startups/'
process:
  type:
    plugin: default_value
    default_value: startups
  source_path:  
    -
      plugin: skip_on_empty
      method: process
      source: image
    -
      plugin: concat
      delimiter: /
      source:
        - constants/file_source
        - image
  title: title
  body/value: body
  body/format:
    plugin: default_value
    default_value: basic_html
  field_fac/uri: fb_link
  field_fac/title:
    plugin: default_value
    default_value: 'Fb Link'
  field_startup_image:
    plugin: file_import
    source: '@source_path'
    destination: constants/file_dest
  field_twitter_link/uri: twitter_link
  field_twitter_link/title:
    plugin: default_value
    default_value: 'Twitter Link'
  field_website_link/uri: website
  field_website_link/title:
    plugin: default_value
    default_value: 'Startup website'
destination:
  plugin: 'entity:node'
  bundle: startups
migration_dependencies:
  required: {  }
  optional: {  }