Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save junaidpv/302f36b9a0767d4bb3ede1283bfbfc40 to your computer and use it in GitHub Desktop.
Save junaidpv/302f36b9a0767d4bb3ede1283bfbfc40 to your computer and use it in GitHub Desktop.
Fix "The "file_download_link" plugin does not exist." error. the media_extra module to be installed.
diff --git a/core/modules/file/src/Plugin/migrate/field/d6/FileField.php b/core/modules/file/src/Plugin/migrate/field/d6/FileField.php
index 804e34a655..0d4b4d3f64 100644
--- a/core/modules/file/src/Plugin/migrate/field/d6/FileField.php
+++ b/core/modules/file/src/Plugin/migrate/field/d6/FileField.php
@@ -38,6 +38,7 @@ public function getFieldFormatterMap() {
'image_plain' => 'image',
'image_nodelink' => 'image',
'image_imagelink' => 'image',
+ 'file_download_link' => 'generic_media_link',
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment