You are here

push_notifications.routing.yml in Push Notifications 8

File

push_notifications.routing.yml
View source
  1. push_notifications.push_notifications_config_form:
  2. path: '/admin/config/services/push_notifications/configuration'
  3. defaults:
  4. _form: '\Drupal\push_notifications\Form\PushNotificationsConfigForm'
  5. _title: 'Push Notifications'
  6. requirements:
  7. _permission: 'access administration pages'
  8. options:
  9. _admin_route: TRUE
  10. push_notifications.send_message_form:
  11. path: '/admin/config/services/push_notifications/send_message'
  12. defaults:
  13. _form: '\Drupal\push_notifications\Form\PushNotificationsSendMessageForm'
  14. _title: 'Send Message'
  15. requirements:
  16. _permission: 'send push notifications'
  17. push_notifications.token.collection:
  18. path: '/admin/config/services/push_notifications/token/list'
  19. defaults:
  20. _entity_list: 'push_notifications_token'
  21. _title: 'Push Notifications Device Tokens'
  22. requirements:
  23. _permission: 'administer device tokens'
  24. entity.push_notifications_token.delete_form:
  25. path: '/push_notifications/token/{push_notifications_token}/delete'
  26. defaults:
  27. _entity_form: push_notifications_token.delete
  28. _title: 'Delete push notifications token'
  29. options:
  30. _admin_route: TRUE
  31. requirements:
  32. _permission: 'administer device tokens'
  33. push_notifications_token: \d+
  34. entity.push_notifications_token.canonical:
  35. path: '/push_notifications/token/{push_notifications_token}'
  36. defaults:
  37. _entity_view: 'push_notifications_token'
  38. _title: 'Push notification token'
  39. options:
  40. _admin_route: TRUE
  41. requirements:
  42. _permission: 'view device tokens'
  43. push_notifications_token: \d+
  44. # Push Notification entity routing
  45. entity.push_notification.collection:
  46. path: '/admin/content/push_notifications/list'
  47. defaults:
  48. _entity_list: 'push_notification'
  49. _title: 'Push Notifications'
  50. requirements:
  51. _permission: 'view push notifications'
  52. entity.push_notification.canonical:
  53. path: '/admin/content/push_notifications/{push_notification}'
  54. defaults:
  55. _entity_view: 'push_notification'
  56. _title: 'Push notification'
  57. requirements:
  58. _permission: 'view push notifications'
  59. push_notifications.push_notification_add:
  60. path: '/admin/content/push_notifications/add'
  61. defaults:
  62. _entity_form: push_notification.add
  63. _title: 'Create a Push Notification'
  64. requirements:
  65. _entity_create_access: 'push_notification'
  66. entity.push_notification.edit_form:
  67. path: '/admin/content/push_notifications/{push_notification}/edit'
  68. defaults:
  69. _entity_form: push_notification.edit
  70. _title: 'Edit the push notification'
  71. requirements:
  72. _entity_access: 'push_notification.edit'
  73. entity.push_notification.delete_form:
  74. path: '/admin/content/push_notifications/{push_notification}/delete'
  75. defaults:
  76. _entity_form: push_notification.delete
  77. _title: 'Delete the push notification'
  78. requirements:
  79. _entity_access: 'push_notification.delete'