You are here

private function Serializer::selfSupportsNormalization in JSON:API 8

Same name and namespace in other branches
  1. 8.2 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.

Return value

bool Whether this class supports normalization for the given data.

2 calls to Serializer::selfSupportsNormalization()
Serializer::normalize in src/Serializer/Serializer.php
Normalizes an object into a set of arrays/scalars.
Serializer::supportsNormalization in src/Serializer/Serializer.php
Checks whether the given class is supported for normalization by this normalizer.

File

src/Serializer/Serializer.php, line 82

Class

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

Namespace

Drupal\jsonapi\Serializer

Code

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