push_notifications.routing.yml in Push Notifications 8
File
push_notifications.routing.yml
View source
-
- push_notifications.push_notifications_config_form:
- path: '/admin/config/services/push_notifications/configuration'
- defaults:
- _form: '\Drupal\push_notifications\Form\PushNotificationsConfigForm'
- _title: 'Push Notifications'
- requirements:
- _permission: 'access administration pages'
- options:
- _admin_route: TRUE
-
- push_notifications.send_message_form:
- path: '/admin/config/services/push_notifications/send_message'
- defaults:
- _form: '\Drupal\push_notifications\Form\PushNotificationsSendMessageForm'
- _title: 'Send Message'
- requirements:
- _permission: 'send push notifications'
-
- push_notifications.token.collection:
- path: '/admin/config/services/push_notifications/token/list'
- defaults:
- _entity_list: 'push_notifications_token'
- _title: 'Push Notifications Device Tokens'
- requirements:
- _permission: 'administer device tokens'
-
- entity.push_notifications_token.delete_form:
- path: '/push_notifications/token/{push_notifications_token}/delete'
- defaults:
- _entity_form: push_notifications_token.delete
- _title: 'Delete push notifications token'
- options:
- _admin_route: TRUE
- requirements:
- _permission: 'administer device tokens'
- push_notifications_token: \d+
-
- entity.push_notifications_token.canonical:
- path: '/push_notifications/token/{push_notifications_token}'
- defaults:
- _entity_view: 'push_notifications_token'
- _title: 'Push notification token'
- options:
- _admin_route: TRUE
- requirements:
- _permission: 'view device tokens'
- push_notifications_token: \d+
-
- # Push Notification entity routing
- entity.push_notification.collection:
- path: '/admin/content/push_notifications/list'
- defaults:
- _entity_list: 'push_notification'
- _title: 'Push Notifications'
- requirements:
- _permission: 'view push notifications'
-
- entity.push_notification.canonical:
- path: '/admin/content/push_notifications/{push_notification}'
- defaults:
- _entity_view: 'push_notification'
- _title: 'Push notification'
- requirements:
- _permission: 'view push notifications'
-
- push_notifications.push_notification_add:
- path: '/admin/content/push_notifications/add'
- defaults:
- _entity_form: push_notification.add
- _title: 'Create a Push Notification'
- requirements:
- _entity_create_access: 'push_notification'
-
- entity.push_notification.edit_form:
- path: '/admin/content/push_notifications/{push_notification}/edit'
- defaults:
- _entity_form: push_notification.edit
- _title: 'Edit the push notification'
- requirements:
- _entity_access: 'push_notification.edit'
-
- entity.push_notification.delete_form:
- path: '/admin/content/push_notifications/{push_notification}/delete'
- defaults:
- _entity_form: push_notification.delete
- _title: 'Delete the push notification'
- requirements:
- _entity_access: 'push_notification.delete'