You are here

public function WebhooksService::setSerializer in Webhooks 8

Set the serializer to use when normalizing/encoding an object.

Parameters

\Symfony\Component\Serializer\Serializer $serializer: The serializer service.

File

src/WebhooksService.php, line 317

Class

WebhooksService
Class WebhookService.

Namespace

Drupal\webhooks

Code

public function setSerializer(Serializer $serializer) {
  $this->serializer = $serializer;
}