You are here

d7_user_role.yml in Drupal 10

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. # A special flag so we can migrate permissions that do not exist yet.
  37. # @todo Remove in https://www.drupal.org/project/drupal/issues/2953111.
  38. skip_missing_permission_deprecation:
  39. plugin: default_value
  40. default_value: true
  41. destination:
  42. plugin: entity:user_role
  43. migration_dependencies:
  44. optional:
  45. - d7_filter_format