d6_field.yml 3.29 KB
Newer Older
1
# cspell:ignore imagefield optionwidgets userreference
2
id: d6_field
3
label: Field configuration
4
migration_tags:
5
  - Drupal 6
6
  - Configuration
7
class: Drupal\migrate_drupal\Plugin\migrate\FieldMigration
8
field_plugin_method: alterFieldMigration
9 10 11 12
source:
  plugin: d6_field
  constants:
    entity_type: node
13
    langcode: en
14 15
  # Phone is here since it does not use a migrate field plugin.
  source_module: phone
16
process:
17
  entity_type: 'constants/entity_type'
18
  status: active
19
  langcode: 'constants/langcode'
20
  field_name: field_name
21
  type:
22 23 24 25 26
    plugin: field_type
    source:
      - type
      - widget_type
    map:
27 28 29 30
      userreference:
        userreference_select: entity_reference
        userreference_buttons: entity_reference
        userreference_autocomplete: entity_reference
31 32
      nodereference:
        nodereference_select: entity_reference
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 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116
      number_integer:
        number: integer
        optionwidgets_select: list_integer
        optionwidgets_buttons: list_integer
        optionwidgets_onoff: boolean
      number_decimal:
        number: decimal
        optionwidgets_select: list_float
        optionwidgets_buttons: list_float
        optionwidgets_onoff: boolean
      number_float:
        number: float
        optionwidgets_select: list_float
        optionwidgets_buttons: list_float
        optionwidgets_onoff: boolean
      email:
        email_textfield: email
      filefield:
        imagefield_widget: image
        filefield_widget: file
      fr_phone:
        phone_textfield: telephone
      be_phone:
        phone_textfield: telephone
      it_phone:
        phone_textfield: telephone
      el_phone:
        phone_textfield: telephone
      ch_phone:
        phone_textfield: telephone
      ca_phone:
        phone_textfield: telephone
      cr_phone:
        phone_textfield: telephone
      pa_phone:
        phone_textfield: telephone
      gb_phone:
        phone_textfield: telephone
      ru_phone:
        phone_textfield: telephone
      ua_phone:
        phone_textfield: telephone
      es_phone:
        phone_textfield: telephone
      au_phone:
        phone_textfield: telephone
      cs_phone:
        phone_textfield: telephone
      hu_phone:
        phone_textfield: telephone
      pl_phone:
        phone_textfield: telephone
      nl_phone:
        phone_textfield: telephone
      se_phone:
        phone_textfield: telephone
      za_phone:
        phone_textfield: telephone
      il_phone:
        phone_textfield: telephone
      nz_phone:
        phone_textfield: telephone
      br_phone:
        phone_textfield: telephone
      cl_phone:
        phone_textfield: telephone
      cn_phone:
        phone_textfield: telephone
      hk_phone:
        phone_textfield: telephone
      mo_phone:
        phone_textfield: telephone
      ph_phone:
        phone_textfield: telephone
      sg_phone:
        phone_textfield: telephone
      jo_phone:
        phone_textfield: telephone
      eg_phone:
        phone_textfield: telephone
      pk_phone:
        phone_textfield: telephone
      int_phone:
        phone_textfield: telephone
117 118 119 120 121 122 123 124 125 126
  cardinality:
    plugin: static_map
    bypass: true
    source: multiple
    map:
      0: 1
      1: -1
  settings:
    plugin: field_settings
    source:
127
      - '@type'
128
      - global_settings
129
      - type
130
destination:
131
  plugin: entity:field_storage_config