You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.5 KiB

4 years ago
  1. uuid: ac13c2f0-57bb-4ed4-9ad8-eb0c076ce00b
  2. langcode: en
  3. status: true
  4. dependencies: { }
  5. id: upgrade_d7_user_role
  6. class: Drupal\migrate\Plugin\Migration
  7. field_plugin_method: null
  8. cck_plugin_method: null
  9. migration_tags:
  10. - 'Drupal 7'
  11. - Configuration
  12. migration_group: migrate_drupal_7
  13. label: 'User roles'
  14. source:
  15. plugin: d7_user_role
  16. process:
  17. id:
  18. -
  19. plugin: machine_name
  20. source: name
  21. -
  22. plugin: user_update_8002
  23. label:
  24. -
  25. plugin: get
  26. source: name
  27. permissions:
  28. -
  29. plugin: static_map
  30. source: permissions
  31. bypass: true
  32. map:
  33. 'use PHP for block visibility': 'use PHP for settings'
  34. 'administer site-wide contact form': 'administer contact forms'
  35. 'post comments without approval': 'skip comment approval'
  36. 'edit own blog entries': 'edit own blog content'
  37. 'edit any blog entry': 'edit any blog content'
  38. 'delete own blog entries': 'delete own blog content'
  39. 'delete any blog entry': 'delete any blog content'
  40. 'create forum topics': 'create forum content'
  41. 'delete any forum topic': 'delete any forum content'
  42. 'delete own forum topics': 'delete own forum content'
  43. 'edit any forum topic': 'edit any forum content'
  44. 'edit own forum topics': 'edit own forum content'
  45. -
  46. plugin: flatten
  47. weight:
  48. -
  49. plugin: get
  50. source: weight
  51. destination:
  52. plugin: 'entity:user_role'
  53. migration_dependencies:
  54. optional:
  55. - upgrade_d7_filter_format
  56. required: { }