You are here

public static function WebhookSubscriber::getSubscribedEvents in Webhooks 8

File

modules/webhook/src/EventSubscriber/WebhookSubscriber.php, line 67

Class

WebhookSubscriber
Webhook event subscriber.

Namespace

Drupal\webhook\EventSubscriber

Code

public static function getSubscribedEvents() {
  return [
    WebhookEvents::SEND => [
      'onWebhookSend',
    ],
    WebhookEvents::RECEIVE => [
      'onWebhookReceive',
    ],
  ];
}