migrate_plus.migration.upgrade_d6_user_role.yml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. uuid: cd43d0bb-1366-435d-b645-157d5969b27f
  2. langcode: fr
  3. status: true
  4. dependencies: { }
  5. id: upgrade_d6_user_role
  6. class: Drupal\migrate\Plugin\Migration
  7. field_plugin_method: null
  8. cck_plugin_method: null
  9. migration_tags:
  10. - 'Drupal 6'
  11. migration_group: migrate_drupal_6
  12. label: 'User roles'
  13. source:
  14. plugin: d6_user_role
  15. process:
  16. id:
  17. -
  18. plugin: machine_name
  19. source: name
  20. -
  21. plugin: user_update_8002
  22. label: name
  23. permissions:
  24. -
  25. plugin: static_map
  26. source: permissions
  27. bypass: true
  28. map:
  29. 'use PHP for block visibility': 'use PHP for settings'
  30. 'administer site-wide contact form': 'administer contact forms'
  31. 'post comments without approval': 'skip comment approval'
  32. 'edit own blog entries': 'edit own blog content'
  33. 'edit any blog entry': 'edit any blog content'
  34. 'delete own blog entries': 'delete own blog content'
  35. 'delete any blog entry': 'delete any blog content'
  36. 'create forum topics': 'create forum content'
  37. 'delete any forum topic': 'delete any forum content'
  38. 'delete own forum topics': 'delete own forum content'
  39. 'edit any forum topic': 'edit any forum content'
  40. 'edit own forum topics': 'edit own forum content'
  41. -
  42. plugin: system_update_7000
  43. -
  44. plugin: node_update_7008
  45. -
  46. plugin: flatten
  47. -
  48. plugin: filter_format_permission
  49. destination:
  50. plugin: 'entity:user_role'
  51. migration_dependencies:
  52. required:
  53. - upgrade_d6_filter_format
  54. optional: { }