Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / field / migrations / d7_field.yml
diff --git a/web/core/modules/field/migrations/d7_field.yml b/web/core/modules/field/migrations/d7_field.yml
new file mode 100644 (file)
index 0000000..aba5c9f
--- /dev/null
@@ -0,0 +1,30 @@
+id: d7_field
+label: Field configuration
+migration_tags:
+  - Drupal 7
+  - Configuration
+class: Drupal\migrate_drupal\Plugin\migrate\FieldMigration
+field_plugin_method: processField
+source:
+  plugin: d7_field
+  constants:
+    status: true
+    langcode: und
+process:
+  entity_type: entity_type
+  status: 'constants/status'
+  langcode: 'constants/langcode'
+  field_name: field_name
+  type:
+    plugin: process_field
+    source: type
+    method: getFieldType
+  # Translatable is not migrated and the Drupal 8 default of true is used.
+  # If translatable is false in field storage then the field can not be
+  # set to translatable via the UI.
+  #translatable: translatable
+  cardinality: cardinality
+  settings:
+    plugin: d7_field_settings
+destination:
+  plugin: entity:field_storage_config