You are here

social_event_invite.routing.yml in Open Social 10.0.x

modules/social_features/social_event/modules/social_event_invite/social_event_invite.routing.yml

File

modules/social_features/social_event/modules/social_event_invite/social_event_invite.routing.yml
View source
  1. social_event_invite.invite_email:
  2. path: '/node/{node}/invite/email'
  3. defaults:
  4. _form: '\Drupal\social_event_invite\Form\EnrollInviteEmailForm'
  5. _title: 'Invite people'
  6. options:
  7. parameters:
  8. node:
  9. type: entity:node
  10. requirements:
  11. _permission: 'access content'
  12. social_event_invite.invite_user:
  13. path: '/node/{node}/invite/user'
  14. defaults:
  15. _form: '\Drupal\social_event_invite\Form\EnrollInviteUserForm'
  16. _title: 'Invite people'
  17. options:
  18. parameters:
  19. node:
  20. type: entity:node
  21. requirements:
  22. _permission: 'access content'
  23. social_event_invite.settings:
  24. path: '/admin/config/opensocial/event-invite'
  25. defaults:
  26. _form: '\Drupal\social_event_invite\Form\EventInviteSettingsForm'
  27. _title: 'Event invite settings'
  28. requirements:
  29. _permission: 'administer social_event settings'
  30. options:
  31. _admin_route: TRUE
  32. social_event_invite.cancel_enrollment_invite:
  33. path: '/node/{node}/all-enrollment-invites/cancel-enrollment/{event_enrollment}'
  34. defaults:
  35. _controller: '\Drupal\social_event_invite\Controller\CancelEnrollInviteController::cancelEnrollmentInvite'
  36. options:
  37. parameters:
  38. node:
  39. type: entity:node
  40. event_enrollment:
  41. type: entity:event_enrollment
  42. requirements:
  43. _custom_access: '\Drupal\social_event_invite\Controller\CancelEnrollInviteController::access'
  44. social_event_invite.update_enrollment_invite:
  45. path: '/user/{user}/event-invites/{event_enrollment}/{accept_decline}'
  46. defaults:
  47. _controller: '\Drupal\social_event_invite\Controller\UserEnrollInviteController::updateEnrollmentInvite'
  48. options:
  49. parameters:
  50. node:
  51. type: entity:user
  52. event_enrollment:
  53. type: entity:event_enrollment
  54. requirements:
  55. _custom_access: '\Drupal\social_event_invite\Controller\UserEnrollInviteController::access'
  56. accept_decline: '[0-1]+'