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\webhooksCode
public function setSerializer(Serializer $serializer) {
$this->serializer = $serializer;
}