public function WebhooksService::encode in Webhooks 8
2 calls to WebhooksService::encode()
- WebhooksService::receive in src/
WebhooksService.php - Receive a webhook.
- WebhooksService::send in src/
WebhooksService.php - Send a webhook.
File
- src/
WebhooksService.php, line 324
Class
- WebhooksService
- Class WebhookService.
Namespace
Drupal\webhooksCode
public function encode($data, $format, array $context = []) {
return $this->serializer
->encode($data, $format);
}