Skip to content
d7_field_instance.yml 1.22 KiB
Newer Older
class: Drupal\migrate_drupal\Plugin\migrate\FieldMigration
field_plugin_method: processFieldInstance
source:
  plugin: d7_field_instance
  constants:
    status: true
process:
  type:
    plugin: process_field
    source: type
    method: getFieldType
  entity_type: entity_type
  field_name: field_name
  # The bundle needs to be statically mapped in order to support comment types
  # that might already exist before this migration is run. See
  # d7_comment_type.yml for more information.
  bundle:
    plugin: static_map
    source: bundle
    bypass: true
    map:
      comment_node_forum: comment_forum
  label: label
  description: description
  required: required
  status: 'constants/status'
  settings:
    plugin: d7_field_instance_settings
    source:
  default_value_function: ''
  default_value:
    plugin: d7_field_instance_defaults
    source:
      - default_value
destination:
  plugin: entity:field_config
migration_dependencies:
  required:
    - d7_field