summaryrefslogtreecommitdiff
path: root/modules/fahad/fac_page/config/install/migrate_plus.migration.FACULTY MIGRATIONS.yml
blob: 82de622fb80cadb70a59aaac883645e9c045dc6c (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
langcode: en
status: true
dependencies: {  }
id: 'FACULTY MIGRATIONS'
class: null
field_plugin_method: null
cck_plugin_method: null
migration_tags: null
migration_group: null
label: 'Custom Content migration from CSV faculty'
source:
  plugin: csv
  path: /var/www/html/project/docroot/faculty.csv
  header_row_count: 1
  keys:
    - id
  constants:
    file_source: /var/www/html/project/docroot/fac_images
    file_dest: 'public://fac_images/'
process:
  type:
    plugin: default_value
    default_value: fac_page
  source_path:
    -
      plugin: skip_on_empty
      method: process
      source: phuto
    -
      plugin: concat
      delimiter: /
      source:
        - constants/file_source
        - phuto
  title: title
  field_email_new: email
  field_full_name: name
  field_faculty_photo:
    plugin: file_import
    source: '@source_path'
    destination: constants/file_dest
  field_department:
    -
      plugin: entity_lookup
      entity_type: node
      bundle: department
      source: entity_ref
destination:
  plugin: 'entity:node'
migration_dependencies:
  required: {  }
  optional: {  }