You are here

invite.routing.yml in Invite 8

File

invite.routing.yml
View source
  1. invite.invite_accept_accept:
  2. path: '/invite/accept/{invite}'
  3. defaults:
  4. _controller: '\Drupal\invite\Controller\InviteAccept::accept'
  5. _title: 'accept'
  6. requirements:
  7. _permission: 'access content'
  8. reg_code: ^[a-zA-Z0-9]+
  9. options:
  10. parameters:
  11. invite:
  12. type: reg_code
  13. invite.invite:
  14. path: '/admin/config/people/invite'
  15. defaults:
  16. _controller: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
  17. _title: 'Invite'
  18. requirements:
  19. _permission: 'access administration pages'
  20. invite.invite_config:
  21. path: '/admin/config/invite/invite_config'
  22. defaults:
  23. _form: '\Drupal\invite\Form\InviteConfig'
  24. _title: 'Invite Config'
  25. requirements:
  26. _permission: 'access administration pages'
  27. options:
  28. _admin_route: TRUE
  29. invite.invite_list:
  30. path: 'invite/list'
  31. defaults:
  32. _controller: '\Drupal\invite\Controller\InviteList::view'
  33. _title: 'Invite list'
  34. requirements:
  35. _permission: 'access administration pages'
  36. options:
  37. _admin_route: TRUE
  38. invite.invite_withdraw_form:
  39. path: 'invite/withdraw/{invite}'
  40. defaults:
  41. _form: '\Drupal\invite\Form\InviteWithdrawForm'
  42. _title: 'Withdraw Invite'
  43. requirements:
  44. _custom_access: '\Drupal\invite\Controller\InviteAccessController::withdrawInviteAccess'
  45. invite.invite_resend_form:
  46. path: 'invite/resend/{invite}'
  47. defaults:
  48. _form: '\Drupal\invite\Form\InviteResendForm'
  49. _title: 'Resend Invite'
  50. requirements:
  51. _custom_access: '\Drupal\invite\Controller\InviteAccessController::resendInviteAccess'