You are here

public function WebhookReceiverInterface::receive in Webhooks 8

Receive a webhook.

Parameters

string $name: The machine name of a webhook.

Return value

\Drupal\webhooks\Webhook A webhook object.

Throws

\Drupal\webhooks\Exception\WebhookIncomingEndpointNotFoundException Thrown when the webhook endpoint is not found.

1 method overrides WebhookReceiverInterface::receive()
WebhooksService::receive in src/WebhooksService.php
Receive a webhook.

File

src/WebhookReceiverInterface.php, line 27

Class

WebhookReceiverInterface
Webhook receivers catch incoming events and trigger an internal event.

Namespace

Drupal\webhooks

Code

public function receive($name);