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

Breadcrumb

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

function Serializer::supportsNormalization

Same name in this branch
  1. 11.1.x core/modules/jsonapi/src/Serializer/Serializer.php \Drupal\jsonapi\Serializer\Serializer::supportsNormalization()

Overrides NormalizerInterface::supportsNormalization

2 calls to Serializer::supportsNormalization()
Serializer::selfSupportsNormalization in core/modules/jsonapi/src/Serializer/Serializer.php
Checks whether this class alone supports normalization.
Serializer::selfSupportsNormalization in core/modules/jsonapi/src/Serializer/Serializer.php
Checks whether this class alone supports normalization.
1 method overrides Serializer::supportsNormalization()
Serializer::supportsNormalization in core/modules/jsonapi/src/Serializer/Serializer.php
Checks whether the given class is supported for normalization by this normalizer.

File

vendor/symfony/serializer/Serializer.php, line 246

Class

Serializer
Serializer serializes and deserializes data.

Namespace

Symfony\Component\Serializer

Code

public function supportsNormalization(mixed $data, ?string $format = null, array $context = []) : bool {
    return null !== $this->getNormalizer($data, $format, $context);
}

API Navigation

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