You are here

gdpr_consent.routing.yml in General Data Protection Regulation 3.0.x

modules/gdpr_consent/gdpr_consent.routing.yml

File

modules/gdpr_consent/gdpr_consent.routing.yml
View source
  1. gdpr_consent.agreements:
  2. path: '/user/{user}/gdpr/agreements'
  3. defaults:
  4. _controller: '\Drupal\gdpr_consent\Controller\ConsentAgreementController::myAgreements'
  5. requirements:
  6. _permission: 'administer users'
  7. user_id: \d+
  8. entity.gdpr_consent_agreement.version_history:
  9. path: '/admin/gdpr/agreements/{gdpr_consent_agreement}/revisions'
  10. defaults:
  11. _title: 'Revisions'
  12. _controller: '\Drupal\gdpr_consent\Controller\ConsentAgreementController::revisionOverview'
  13. requirements:
  14. _permission: 'manage gdpr agreements'
  15. gdpr_consent_agreement: \d+