migrate_plus.migration.d6_edlp_allfiles.yml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # Every migration that references a file by Drupal 6 fid should specify this
  2. # migration as an optional dependency.
  3. id: d6_edlp_allfiles
  4. label: Edlp Drupal 6 mp3 migration
  5. migration_tags:
  6. - Drupal 6
  7. migration_group: d6_edlp
  8. source:
  9. plugin: d6_edlp_file
  10. constants:
  11. # The tool configuring this migration must set source_base_path. It
  12. # represents the fully qualified path relative to which URIs in the files
  13. # table are specified, and must end with a /. See source_full_path
  14. # configuration in this migration's process pipeline as an example.
  15. source_base_path: '../drupal6'
  16. process:
  17. # If you are using both this migration and d6_user_picture_file in a custom
  18. # migration and executing migrations incrementally, it is strongly
  19. # recommended that you remove the fid mapping to avoid potential ID
  20. # conflicts. For that reason, this mapping is commented out by default.
  21. fid: fid
  22. filename: filename
  23. source_full_path:
  24. -
  25. plugin: concat
  26. delimiter: /
  27. source:
  28. - constants/source_base_path
  29. - filepath
  30. -
  31. plugin: urlencode
  32. destination_full_path:
  33. plugin: file_uri
  34. source:
  35. - filepath
  36. - file_directory_path
  37. - temp_directory_path
  38. - is_public
  39. uri:
  40. plugin: file_copy
  41. source:
  42. - '@source_full_path'
  43. - '@destination_full_path'
  44. filemime: filemime
  45. # No need to migrate filesize, it is computed when file entities are saved.
  46. # filesize: filesize
  47. status: status
  48. changed: timestamp
  49. uid: uid
  50. destination:
  51. plugin: entity:file