You are here

public function Webhook::setSecret in Webhooks 8

Set the secret.

Parameters

string $secret: A secret string.

Return value

Webhook The webhook.

1 call to Webhook::setSecret()
Webhook::addPayload in src/Webhook.php
Add to the payload.

File

src/Webhook.php, line 304

Class

Webhook
Class Webhook .

Namespace

Drupal\webhooks

Code

public function setSecret($secret) {
  $this->secret = $secret;
  return $this;
}