You are here

public static function WebhooksTestSubscriber::getSubscribedEvents in Webhooks 8

File

tests/modules/webhooks_test/src/EventSubscriber/WebhooksTestSubscriber.php, line 83

Class

WebhooksTestSubscriber
Webhooks Test event subscriber.

Namespace

Drupal\webhooks_test\EventSubscriber

Code

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