You are here

public function WebhooksService::decode in Webhooks 8

1 call to WebhooksService::decode()
WebhooksService::receive in src/WebhooksService.php
Receive a webhook.

File

src/WebhooksService.php, line 338

Class

WebhooksService
Class WebhookService.

Namespace

Drupal\webhooks

Code

public function decode($data, $format, array $context = []) {
  return $this->serializer
    ->decode($data, $format);
}