final class WebhookEvents in Webhooks 8
Class Webhook Events.
@package Drupal\webhooks\Event
Hierarchy
- class \Drupal\webhooks\Event\WebhookEvents
Expanded class hierarchy of WebhookEvents
4 files declare their use of WebhookEvents
- WebhookDispatcher.php in src/
Plugin/ QueueWorker/ WebhookDispatcher.php - WebhooksService.php in src/
WebhooksService.php - WebhooksTestSubscriber.php in tests/
modules/ webhooks_test/ src/ EventSubscriber/ WebhooksTestSubscriber.php - WebhookSubscriber.php in modules/
webhook/ src/ EventSubscriber/ WebhookSubscriber.php
File
- src/
Event/ WebhookEvents.php, line 10
Namespace
Drupal\webhooks\EventView source
final class WebhookEvents {
/**
* Name of the event fired when a webhook is sent.
*
* This event allows modules to perform an action whenever a webhook is sent.
* The event listener method receives a \Drupal\webhooks\Event\SendEvent
* instance.
*
* @Event
*/
const SEND = 'webhook.send';
/**
* Name of the event fired when a webhook is received.
*
* This event allows modules to perform an action whenever a webhook is
* received.
* The event listener method receives a \Drupal\webhooks\Event\ReceiveEvent
* instance.
*
* @Event
*/
const RECEIVE = 'webhook.receive';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
WebhookEvents:: |
constant | Name of the event fired when a webhook is received. | ||
WebhookEvents:: |
constant | Name of the event fired when a webhook is sent. |