You are here

public function Webhook::setPayload in Webhooks 8

Set the payload.

Parameters

array $payload: A payload array.

Return value

Webhook The webhook.

1 call to Webhook::setPayload()
Webhook::__construct in src/Webhook.php
Webhook constructor.

File

src/Webhook.php, line 160

Class

Webhook
Class Webhook .

Namespace

Drupal\webhooks

Code

public function setPayload(array $payload) {
  $this->payload = $payload;
  return $this;
}