You are here

social_gdpr.routing.yml in Open Social 8.5

modules/custom/social_gdpr/social_gdpr.routing.yml

File

modules/custom/social_gdpr/social_gdpr.routing.yml
View source
  1. social_gdpr.data_policy.add:
  2. path: '/data-policy/revisions/add'
  3. defaults:
  4. _entity_form: 'data_policy.edit'
  5. _title: 'Add new revision'
  6. requirements:
  7. _permission: 'edit data policy'
  8. social_gdpr.data_policy.revisions:
  9. path: '/data-policy/revisions'
  10. defaults:
  11. _controller: '\Drupal\social_gdpr\Controller\DataPolicy::revisionsOverviewPage'
  12. _title: 'Revisions'
  13. requirements:
  14. _permission: 'view all data policy revisions'
  15. social_gdpr.data_policy.revision:
  16. path: '/data-policy/revisions/{data_policy_revision}'
  17. defaults:
  18. _controller: '\Drupal\data_policy\Controller\DataPolicy::revisionOverviewPage'
  19. _title_callback: '\Drupal\social_gdpr\Controller\DataPolicy::revisionOverviewTitle'
  20. requirements:
  21. _permission: 'access data policy revisions'
  22. social_gdpr.data_policy.revision_edit:
  23. path: '/data-policy/revisions/{data_policy_revision}/edit'
  24. defaults:
  25. _form: '\Drupal\data_policy\Form\DataPolicyRevisionEdit'
  26. _title: 'Edit revision'
  27. requirements:
  28. _custom_access: '\Drupal\data_policy\Controller\DataPolicy::revisionEditAccess'
  29. social_gdpr.data_policy.revision_revert:
  30. path: '/data-policy/revisions/{data_policy_revision}/revert'
  31. defaults:
  32. _form: '\Drupal\social_gdpr\Form\DataPolicyRevisionRevertForm'
  33. _title: 'Are you sure to revert this revision'
  34. requirements:
  35. _permission: 'revert all data policy revisions'
  36. social_gdpr.data_policy.translation_revert:
  37. path: '/data-policy/revisions/{data_policy_revision}/revert/{langcode}'
  38. defaults:
  39. _form: '\Drupal\social_gdpr\Form\DataPolicyRevisionRevertTranslationForm'
  40. _title: 'Are you sure to revert this revision of a translation'
  41. requirements:
  42. _permission: 'revert all data policy revisions'
  43. social_gdpr.data_policy.revision_delete:
  44. path: '/data-policy/revisions/{data_policy_revision}/delete'
  45. defaults:
  46. _form: '\Drupal\social_gdpr\Form\DataPolicyRevisionDeleteForm'
  47. _title: 'Delete'
  48. requirements:
  49. _permission: 'delete all data policy revisions'