migrate_plus.migration.upgrade_d6_file.yml 969 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. uuid: dcd1eb8d-512d-43b8-82ce-8ea888ca4ef1
  2. langcode: fr
  3. status: true
  4. dependencies: { }
  5. id: upgrade_d6_file
  6. class: Drupal\migrate\Plugin\Migration
  7. field_plugin_method: null
  8. cck_plugin_method: null
  9. migration_tags:
  10. - 'Drupal 6'
  11. migration_group: migrate_drupal_6
  12. label: 'Public files'
  13. source:
  14. plugin: d6_file
  15. constants:
  16. source_base_path: ../drupal6/
  17. process:
  18. filename: filename
  19. source_full_path:
  20. -
  21. plugin: concat
  22. delimiter: /
  23. source:
  24. - constants/source_base_path
  25. - filepath
  26. -
  27. plugin: urlencode
  28. destination_full_path:
  29. plugin: file_uri
  30. source:
  31. - filepath
  32. - file_directory_path
  33. - temp_directory_path
  34. - is_public
  35. uri:
  36. plugin: file_copy
  37. source:
  38. - '@source_full_path'
  39. - '@destination_full_path'
  40. filemime: filemime
  41. status: status
  42. changed: timestamp
  43. uid: uid
  44. destination:
  45. plugin: 'entity:file'
  46. migration_dependencies:
  47. required: { }
  48. optional: { }