webhooks.routing.yml in Webhooks 8
1 string reference to YAML keys in webhooks.routing.yml
- WebhookConfigListBuilder::getOperations in src/
WebhookConfigListBuilder.php - Provides an array of information to build a list of operation links.
File
webhooks.routing.ymlView source
- webhooks.webhook_receive:
- path: '/webhook/{incoming_webhook_name}'
- methods: [POST]
- defaults:
- _controller: '\Drupal\webhooks\Controller\WebhookController::receive'
- _title: 'Webhooks receiver'
- requirements:
- _custom_access: '\Drupal\webhooks\Controller\WebhookController::access'
-
- webhooks.webhook_toggle_active:
- path: '/admin/config/services/webhook/{id}/toggle_active'
- defaults:
- _controller: '\Drupal\webhooks\Controller\WebhookController::toggleActive'
- requirements:
- _csrf_token: 'TRUE'
- _permission: 'administer webhooks'
-
- webhooks.admin_settings:
- path: '/admin/config/services/webhook/settings'
- defaults:
- _title: 'Settings'
- _form: 'Drupal\webhooks\Form\SettingsForm'
- requirements:
- _permission: 'administer webhooks'