4e1901dc4ac18775fc3d3240707b3038bf2cbce7
[yaffs-website] / web / core / modules / field / migration_templates / d7_field_instance.yml
1 id: d7_field_instance
2 label: Field instance configuration
3 migration_tags:
4   - Drupal 7
5 class: Drupal\migrate_drupal\Plugin\migrate\FieldMigration
6 field_plugin_method: processFieldInstance
7 source:
8   plugin: d7_field_instance
9   constants:
10     status: true
11 process:
12   type:
13     plugin: process_field
14     source: type
15     method: getFieldType
16   entity_type: entity_type
17   field_name: field_name
18   # The bundle needs to be statically mapped in order to support comment types
19   # that might already exist before this migration is run. See
20   # d7_comment_type.yml for more information.
21   bundle:
22     plugin: static_map
23     source: bundle
24     bypass: true
25     map:
26       comment_node_forum: comment_forum
27   label: label
28   description: description
29   required: required
30   status: 'constants/status'
31   settings:
32     plugin: d7_field_instance_settings
33     source:
34       - settings
35       - widget
36       - field_definition
37   default_value_function: ''
38   default_value:
39     plugin: d7_field_instance_defaults
40     source:
41       - default_value
42       - widget
43   translatable: translatable
44 destination:
45   plugin: entity:field_config
46 migration_dependencies:
47   required:
48     - d7_field
49   optional:
50     - d7_node_type
51     - d7_comment_type
52     - d7_taxonomy_vocabulary