You are here

final class WebhookEvents in Webhooks 8

Class Webhook Events.

@package Drupal\webhooks\Event

Hierarchy

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\Event
View 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

Namesort descending Modifiers Type Description Overrides
WebhookEvents::RECEIVE constant Name of the event fired when a webhook is received.
WebhookEvents::SEND constant Name of the event fired when a webhook is sent.