You are here

private function Serializer::selfSupportsNormalization in Drupal 8

Same name and namespace in other branches
  1. 9 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
Normalizes an object into a set of arrays/scalars.
Serializer::supportsNormalization in core/modules/jsonapi/src/Serializer/Serializer.php
Checks whether the given class is supported for normalization by this normalizer.

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);
}