summaryrefslogtreecommitdiff
path: root/modules/esha/onlinecourse/config/install/migrate_plus.migration.onlinecourse_sample.yml
blob: 8f8ec38ada367e49d39e16f09bda8f74b46b85f4 (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
uuid: 7ab17b40-597e-411a-a750-23c138da7c6d
id: onlinecourse_sample
label: Courses
migration_group: default
source:
  plugin: csv
  # Full path to the file.
  path: '/var/www/CSV/onlinecourse_sample.csv'
  # Column delimiter. Comma (,) by default.
  delimiter: ','
  # Field enclosure. Double quotation marks (") by default.
  enclosure: '"'
  # The number of rows at the beginning which are not data.
  header_row_count: 1
  keys:
    - id
process:
  type:
    plugin: default_value
    default_value: online_course
  title: title
  field_link_to_cour: link
  field_offered_by: offeredby
  field_faculty_name:
    -
      plugin: explode
      delimiter: '|'
      source: names
    -
      plugin: entity_lookup
      entity_type: node
      bundle: fac_page
destination:
  plugin: 'entity:node'
  bundle: online_course
migration_dependencies: null