You are here

public function ReceiveEvent::__construct in Webhooks 8

SendEvent constructor.

Parameters

\Drupal\webhooks\Entity\WebhookConfig $webhook_config: A webhook configuration entity.

\Drupal\webhooks\Webhook $webhook: A webhook.

File

src/Event/ReceiveEvent.php, line 38

Class

ReceiveEvent
Class Receive Event.

Namespace

Drupal\webhooks\Event

Code

public function __construct(WebhookConfig $webhook_config, Webhook $webhook) {
  $this->webhookConfig = $webhook_config;
  $this->webhook = $webhook;
}