Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / taxonomy / src / Plugin / migrate / field / TaxonomyTermReference.php
index 54ce9dbda8031506dcc0477634721a7345445600..bea9a3f95f0b259f0dcf71c73a4d526184d9a836 100644 (file)
@@ -11,11 +11,22 @@ use Drupal\migrate_drupal\Plugin\migrate\field\FieldPluginBase;
  *   type_map = {
  *     "taxonomy_term_reference" = "entity_reference"
  *   },
- *   core = {6,7}
+ *   core = {6,7},
+ *   source_module = "taxonomy",
+ *   destination_module = "core",
  * )
  */
 class TaxonomyTermReference extends FieldPluginBase {
 
+  /**
+   * {@inheritdoc}
+   */
+  public function getFieldFormatterMap() {
+    return [
+      'taxonomy_term_reference_link' => 'entity_reference_label',
+    ];
+  }
+
   /**
    * {@inheritdoc}
    */