You are here

private function Serializer::selfSupportsNormalization in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/jsonapi/src/Serializer/Serializer.php \Drupal\jsonapi\Serializer\Serializer::selfSupportsNormalization()

Checks whether this class alone supports normalization.

Parameters

mixed $data: Data to normalize.

string $format: The format being (de-)serialized from or into.

array $context: (optional) Options available to the normalizer.

Return value

bool Whether this class supports normalization for the given data.

2 calls to Serializer::selfSupportsNormalization()
Serializer::normalize in core/modules/jsonapi/src/Serializer/Serializer.php
Serializer::supportsNormalization in core/modules/jsonapi/src/Serializer/Serializer.php

File

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

Class

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

Namespace

Drupal\jsonapi\Serializer

Code

private function selfSupportsNormalization($data, $format = NULL, array $context = []) {
  return parent::supportsNormalization($data, $format, $context);
}