interface WebhookReceiverInterface in Webhooks 8
Webhook receivers catch incoming events and trigger an internal event.
The internal event allows any module in the Drupal site to react to remote operations.
@package Drupal\webhooks
Hierarchy
- interface \Drupal\webhooks\WebhookReceiverInterface
Expanded class hierarchy of WebhookReceiverInterface
All classes that implement WebhookReceiverInterface
File
- src/
WebhookReceiverInterface.php, line 13
Namespace
Drupal\webhooksView source
interface WebhookReceiverInterface {
/**
* Receive a webhook.
*
* @param string $name
* The machine name of a webhook.
*
* @return \Drupal\webhooks\Webhook
* A webhook object.
*
* @throws \Drupal\webhooks\Exception\WebhookIncomingEndpointNotFoundException
* Thrown when the webhook endpoint is not found.
*/
public function receive($name);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
WebhookReceiverInterface:: |
public | function | Receive a webhook. | 1 |