You are here

public function Webhook::addPayload in Webhooks 8

Add to the payload.

Parameters

array $payload: A payload array.

Return value

Webhook The webhook.

File

src/Webhook.php, line 174

Class

Webhook
Class Webhook .

Namespace

Drupal\webhooks

Code

public function addPayload(array $payload) {
  $this->payload = array_merge($this->payload, $payload);
  $this
    ->setSecret($this->secret);
  return $this;
}