Skip to content
Snippets Groups Projects
Select Git revision
  • 9.0.x
  • 11.x default protected
  • 11.2.x protected
  • 10.5.x protected
  • 10.6.x protected
  • 11.1.x protected
  • 10.4.x protected
  • 11.0.x protected
  • 10.3.x protected
  • 7.x protected
  • 10.2.x protected
  • 10.1.x protected
  • 9.5.x protected
  • 10.0.x protected
  • 9.4.x protected
  • 9.3.x protected
  • 9.2.x protected
  • 9.1.x protected
  • 8.9.x protected
  • 8.8.x protected
  • 10.5.1 protected
  • 11.2.2 protected
  • 11.2.1 protected
  • 11.2.0 protected
  • 10.5.0 protected
  • 11.2.0-rc2 protected
  • 10.5.0-rc1 protected
  • 11.2.0-rc1 protected
  • 10.4.8 protected
  • 11.1.8 protected
  • 10.5.0-beta1 protected
  • 11.2.0-beta1 protected
  • 11.2.0-alpha1 protected
  • 10.4.7 protected
  • 11.1.7 protected
  • 10.4.6 protected
  • 11.1.6 protected
  • 10.3.14 protected
  • 10.4.5 protected
  • 11.0.13 protected
40 results

d7_field_instance.yml

Blame
  • Alex Pott's avatar
    Issue #2763637 by Jo Fitzgerald, quietone, hussainweb, timwood, alexpott,...
    Alex Pott authored
    Issue #2763637 by Jo Fitzgerald, quietone, hussainweb, timwood, alexpott, heddn, mikeryan, phenaproxima, maxocub, BenStallings, catch: D7 taxonomy term fields are not migrated with allowed vocabularies
    16f38cff
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    d7_field_instance.yml 1.44 KiB
    id: d7_field_instance
    label: Field instance configuration
    migration_tags:
      - Drupal 7
      - Configuration
    class: Drupal\migrate_drupal\Plugin\migrate\FieldMigration
    field_plugin_method: alterFieldInstanceMigration
    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'
      allowed_values:
        -
          plugin: sub_process
          source: allowed_vid
          process:
            -
              plugin: migration_lookup
              migration: d7_taxonomy_vocabulary
              source: vid
      settings:
        plugin: d7_field_instance_settings
        source:
          - settings
          - widget
          - field_definition
      default_value_function: ''
      default_value:
        plugin: d7_field_instance_defaults
        source:
          - default_value
          - widget
      translatable: translatable
    destination:
      plugin: entity:field_config
    migration_dependencies:
      required:
        - d7_field
      optional:
        - d7_node_type
        - d7_comment_type
        - d7_taxonomy_vocabulary