d6_user_picture_file.yml

Same filename in other branches
  1. 8.9.x core/modules/user/migrations/d6_user_picture_file.yml
  2. 10 core/modules/user/migrations/d6_user_picture_file.yml
  3. 11.x core/modules/user/migrations/d6_user_picture_file.yml
core/modules/user/migrations/d6_user_picture_file.yml

File

core/modules/user/migrations/d6_user_picture_file.yml

View source
  1. id: d6_user_picture_file
  2. label: User pictures
  3. migration_tags:
  4. - Drupal 6
  5. - Content
  6. source:
  7. plugin: d6_user_picture_file
  8. constants:
  9. is_public: true
  10. # source_base_path must be set by the tool configuring this migration. It
  11. # represents the fully qualified path relative to which URIs in the files
  12. # table are specified, and must end with a /.
  13. source_base_path: ''
  14. process:
  15. filename: filename
  16. uid: uid
  17. source_full_path:
  18. -
  19. plugin: concat
  20. delimiter: /
  21. source:
  22. - constants/source_base_path
  23. - picture
  24. -
  25. plugin: urlencode
  26. destination_full_path:
  27. plugin: file_uri
  28. source:
  29. - picture
  30. - file_directory_path
  31. - temp_directory_path
  32. - 'constants/is_public'
  33. uri:
  34. plugin: file_copy
  35. source:
  36. - '@source_full_path'
  37. - '@destination_full_path'
  38. destination:
  39. plugin: entity:file
  40. migration_dependencies:
  41. # Every migration that references a file by Drupal 6 fid should specify d6_file as an
  42. # optional dependency.
  43. optional:
  44. - d6_file

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.