mirror of
https://github.com/tag1consulting/d7_to_d10_migration.git
synced 2025-01-12 23:24:34 +00:00
Add reference upgrade_d7_user_role migration
This commit is contained in:
parent
96cf0ee6ac
commit
dbefa59eac
1 changed files with 60 additions and 0 deletions
|
@ -0,0 +1,60 @@
|
||||||
|
uuid: 5c72f2cc-3b93-4a60-90e7-60bd8ba78d04
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies: { }
|
||||||
|
id: upgrade_d7_user_role
|
||||||
|
class: Drupal\migrate\Plugin\Migration
|
||||||
|
field_plugin_method: null
|
||||||
|
cck_plugin_method: null
|
||||||
|
migration_tags:
|
||||||
|
- 'Drupal 7'
|
||||||
|
- Configuration
|
||||||
|
migration_group: migrate_drupal_7
|
||||||
|
label: 'User roles'
|
||||||
|
source:
|
||||||
|
plugin: d7_user_role
|
||||||
|
process:
|
||||||
|
id:
|
||||||
|
-
|
||||||
|
plugin: machine_name
|
||||||
|
source: name
|
||||||
|
-
|
||||||
|
plugin: user_update_8002
|
||||||
|
label:
|
||||||
|
-
|
||||||
|
plugin: get
|
||||||
|
source: name
|
||||||
|
permissions:
|
||||||
|
-
|
||||||
|
plugin: static_map
|
||||||
|
source: permissions
|
||||||
|
bypass: true
|
||||||
|
map:
|
||||||
|
'use PHP for block visibility': 'use PHP for settings'
|
||||||
|
'administer site-wide contact form': 'administer contact forms'
|
||||||
|
'post comments without approval': 'skip comment approval'
|
||||||
|
'edit own blog entries': 'edit own blog content'
|
||||||
|
'edit any blog entry': 'edit any blog content'
|
||||||
|
'delete own blog entries': 'delete own blog content'
|
||||||
|
'delete any blog entry': 'delete any blog content'
|
||||||
|
'create forum topics': 'create forum content'
|
||||||
|
'delete any forum topic': 'delete any forum content'
|
||||||
|
'delete own forum topics': 'delete own forum content'
|
||||||
|
'edit any forum topic': 'edit any forum content'
|
||||||
|
'edit own forum topics': 'edit own forum content'
|
||||||
|
-
|
||||||
|
plugin: flatten
|
||||||
|
weight:
|
||||||
|
-
|
||||||
|
plugin: get
|
||||||
|
source: weight
|
||||||
|
destination:
|
||||||
|
plugin: 'entity:user_role'
|
||||||
|
migration_dependencies:
|
||||||
|
required: { }
|
||||||
|
optional:
|
||||||
|
- upgrade_block_content_type
|
||||||
|
- upgrade_d7_filter_format
|
||||||
|
- upgrade_d7_node_type
|
||||||
|
- upgrade_d7_shortcut_set
|
||||||
|
- upgrade_d7_taxonomy_vocabulary
|
Loading…
Reference in a new issue