Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. TraceableNormalizer.php

function TraceableNormalizer::setSerializer

Overrides SerializerAwareInterface::setSerializer

File

vendor/symfony/serializer/Debug/TraceableNormalizer.php, line 95

Class

TraceableNormalizer
Collects some data about normalization.

Namespace

Symfony\Component\Serializer\Debug

Code

public function setSerializer(SerializerInterface $serializer) : void {
    if (!$this->normalizer instanceof SerializerAwareInterface) {
        return;
    }
    $this->normalizer
        ->setSerializer($serializer);
}
RSS feed
Powered by Drupal