d7_user_role.yml

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

File

core/modules/user/migrations/d7_user_role.yml

View source
  1. id: d7_user_role
  2. label: User roles
  3. migration_tags:
  4. - Drupal 7
  5. - Configuration
  6. source:
  7. plugin: d7_user_role
  8. process:
  9. id:
  10. -
  11. plugin: machine_name
  12. source: name
  13. -
  14. plugin: user_update_8002
  15. label: name
  16. permissions:
  17. -
  18. plugin: static_map
  19. source: permissions
  20. bypass: true
  21. map:
  22. 'use PHP for block visibility': 'use PHP for settings'
  23. 'administer site-wide contact form': 'administer contact forms'
  24. 'post comments without approval': 'skip comment approval'
  25. 'edit own blog entries': 'edit own blog content'
  26. 'edit any blog entry': 'edit any blog content'
  27. 'delete own blog entries': 'delete own blog content'
  28. 'delete any blog entry': 'delete any blog content'
  29. 'create forum topics': 'create forum content'
  30. 'delete any forum topic': 'delete any forum content'
  31. 'delete own forum topics': 'delete own forum content'
  32. 'edit any forum topic': 'edit any forum content'
  33. 'edit own forum topics': 'edit own forum content'
  34. - plugin: flatten
  35. weight: weight
  36. destination:
  37. plugin: entity:user_role
  38. migration_dependencies:
  39. optional:
  40. - block_content_type
  41. - contact_category
  42. - d7_comment_type
  43. - d7_filter_format
  44. - d7_node_type
  45. - d7_shortcut_set
  46. - d7_taxonomy_vocabulary
  47. - d7_taxonomy_vocabulary_translation

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