Version 1
[yaffs-website] / web / core / modules / user / migration_templates / d7_user_role.yml
1 id: d7_user_role
2 label: User roles
3 migration_tags:
4   - Drupal 7
5 source:
6   plugin: d7_user_role
7 process:
8   id:
9     -
10       plugin: machine_name
11       source: name
12     -
13       plugin: user_update_8002
14   label: name
15   permissions:
16     -
17       plugin: static_map
18       source: permissions
19       bypass: true
20       map:
21         'use PHP for block visibility': 'use PHP for settings'
22         'administer site-wide contact form': 'administer contact forms'
23         'post comments without approval': 'skip comment approval'
24         'edit own blog entries': 'edit own blog content'
25         'edit any blog entry': 'edit any blog content'
26         'delete own blog entries': 'delete own blog content'
27         'delete any blog entry': 'delete any blog content'
28         'create forum topics': 'create forum content'
29         'delete any forum topic': 'delete any forum content'
30         'delete own forum topics': 'delete own forum content'
31         'edit any forum topic': 'edit any forum content'
32         'edit own forum topics': 'edit own forum content'
33     - plugin: flatten
34   weight: weight
35 destination:
36   plugin: entity:user_role
37 migration_dependencies:
38   optional:
39     - d7_filter_format