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