migrate_plus.migration.upgrade_d6_user_picture_file.yml 982 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. uuid: a015a14a-bc21-471e-8fdb-39252c4d6182
  2. langcode: fr
  3. status: true
  4. dependencies: { }
  5. id: upgrade_d6_user_picture_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: 'User pictures'
  13. source:
  14. plugin: d6_user_picture_file
  15. constants:
  16. is_public: true
  17. source_base_path: ../drupal6/
  18. process:
  19. filename: filename
  20. uid: uid
  21. source_full_path:
  22. -
  23. plugin: concat
  24. delimiter: /
  25. source:
  26. - constants/source_base_path
  27. - picture
  28. -
  29. plugin: urlencode
  30. destination_full_path:
  31. plugin: file_uri
  32. source:
  33. - picture
  34. - file_directory_path
  35. - temp_directory_path
  36. - constants/is_public
  37. uri:
  38. plugin: file_copy
  39. source:
  40. - '@source_full_path'
  41. - '@destination_full_path'
  42. destination:
  43. plugin: 'entity:file'
  44. migration_dependencies:
  45. optional:
  46. - upgrade_d6_file
  47. required: { }