You are here

public function HandleWebhookEvent::setResponse in Acquia Content Hub 8.2

Sets the response to return for this webhook.

Drupal can handle many different response types which is why this method parameter is not type hinted.

Parameters

mixed $response: The response for this webhook.

File

src/Event/HandleWebhookEvent.php, line 119

Class

HandleWebhookEvent
An event for responding to incoming webhooks from the ContentHub Service.

Namespace

Drupal\acquia_contenthub\Event

Code

public function setResponse($response) {
  $this->response = $response;
}