You are here

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

Expanded class hierarchy of WebhookReceiverInterface

All classes that implement WebhookReceiverInterface

File

src/WebhookReceiverInterface.php, line 13

Namespace

Drupal\webhooks
View 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