Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / lib / Drupal / Core / Field / Plugin / migrate / field / d7 / EntityReference.php
index 2e61589fb5ef014fa7bb4c660f3d3ded99ff313d..eb04df8f07a01209d123499d01b23342bcbed56b 100644 (file)
@@ -10,7 +10,22 @@ use Drupal\migrate_drupal\Plugin\migrate\field\FieldPluginBase;
  *   type_map = {
  *     "entityreference" = "entity_reference",
  *   },
- *   core = {7}
+ *   core = {7},
+ *   source_module = "entityreference",
+ *   destination_module = "core"
  * )
  */
-class EntityReference extends FieldPluginBase {}
+class EntityReference extends FieldPluginBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getFieldFormatterMap() {
+    return [
+      'entityreference_label' => 'entity_reference_label',
+      'entityreference_entity_id' => 'entity_reference_entity_id',
+      'entityreference_entity_view' => 'entity_reference_entity_view',
+    ];
+  }
+
+}