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

Breadcrumb

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

function Serializer::denormalize

Same name in this branch
  1. 11.1.x vendor/symfony/serializer/Serializer.php \Symfony\Component\Serializer\Serializer::denormalize()

Overrides Serializer::denormalize

File

core/modules/jsonapi/src/Serializer/Serializer.php, line 73

Class

Serializer
Overrides the Symfony serializer to cordon off our incompatible normalizers.

Namespace

Drupal\jsonapi\Serializer

Code

public function denormalize($data, $type, $format = NULL, array $context = []) : mixed {
    if ($this->selfSupportsDenormalization($data, $type, $format, $context)) {
        return parent::denormalize($data, $type, $format, $context);
    }
    return $this->fallbackNormalizer
        ->denormalize($data, $type, $format, $context);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal