You are here

social_event.routing.yml in Open Social 10.2.x

modules/social_features/social_event/social_event.routing.yml

File

modules/social_features/social_event/social_event.routing.yml
View source
  1. social_event.my_events:
  2. path: '/my-events'
  3. defaults:
  4. _controller: '\Drupal\social_event\Controller\SocialEventController::redirectMyEvents'
  5. requirements:
  6. _user_is_logged_in: 'TRUE'
  7. social_event.settings:
  8. path: '/admin/config/opensocial/event'
  9. defaults:
  10. _form: '\Drupal\social_event\Form\EventSettingsForm'
  11. _title: 'Event settings'
  12. requirements:
  13. _permission: 'administer social_event settings'
  14. options:
  15. _admin_route: TRUE
  16. social_event.update_enrollment_request:
  17. path: '/node/{node}/all-enrollment-requests/update-enrollment/{event_enrollment}/{approve}'
  18. defaults:
  19. _controller: '\Drupal\social_event\Controller\UpdateEnrollRequestController::updateEnrollmentRequest'
  20. options:
  21. parameters:
  22. node:
  23. type: entity:node
  24. event_enrollment:
  25. type: entity:event_enrollment
  26. requirements:
  27. _custom_access: '\Drupal\social_event\Controller\UpdateEnrollRequestController::access'
  28. approve: '[0-1]+'
  29. social_event.enrollment_request_decline_form:
  30. path: '/node/{node}/all-enrollment-requests/confirm-decline/{event_enrollment}'
  31. defaults:
  32. _form: '\Drupal\social_event\Form\EnrollRequestDeclineForm'
  33. _title_callback: '\Drupal\social_event\Controller\SocialEventController::getTitleDeclineRequest'
  34. options:
  35. parameters:
  36. node:
  37. type: entity:node
  38. event_enrollment:
  39. type: entity:event_enrollment
  40. requirements:
  41. _custom_access: '\Drupal\social_event\Controller\UpdateEnrollRequestController::access'
  42. social_event.request_enroll_dialog:
  43. path: '/node/{node}/enroll-dialog-request'
  44. defaults:
  45. _controller: '\Drupal\social_event\Controller\EnrollRequestDialogController::enrollDialog'
  46. _title_callback: '\Drupal\social_event\Controller\EnrollRequestDialogController::enrollTitle'
  47. options:
  48. parameters:
  49. node:
  50. type: entity:node
  51. requirements:
  52. _custom_access: '\Drupal\social_event\Controller\EnrollRequestDialogController::enrollAccess'