Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / link / src / Plugin / migrate / field / d7 / LinkField.php
index bb71418aba49903fba2702fad1a5902b0003969d..c9c7f9f188928eda47704df57363b9107bfa8cf5 100644 (file)
@@ -11,7 +11,9 @@ use Drupal\migrate\Plugin\MigrationInterface;
  *   core = {7},
  *   type_map = {
  *     "link_field" = "link"
- *   }
+ *   },
+ *   source_module = "link",
+ *   destination_module = "link"
  * )
  *
  * This plugin provides the exact same functionality as the Drupal 6 "link"
@@ -20,6 +22,15 @@ use Drupal\migrate\Plugin\MigrationInterface;
  */
 class LinkField extends D6LinkField {
 
+  /**
+   * {@inheritdoc}
+   */
+  public function getFieldFormatterMap() {
+    return [
+      'link_default' => 'link',
+    ];
+  }
+
   /**
    * {@inheritdoc}
    */