You are here

public function Serializer::supportsNormalization in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/serializer/Serializer.php \Symfony\Component\Serializer\Serializer::supportsNormalization()

Checks whether the given class is supported for normalization by this normalizer.

Parameters

mixed $data Data to normalize.:

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

Return value

bool

Overrides NormalizerInterface::supportsNormalization

1 call to Serializer::supportsNormalization()
Serializer::normalize in vendor/symfony/serializer/Serializer.php
Normalizes an object into a set of arrays/scalars.

File

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

Class

Serializer
Serializer serializes and deserializes data.

Namespace

Symfony\Component\Serializer

Code

public function supportsNormalization($data, $format = null) {
  return null !== $this
    ->getNormalizer($data, $format);
}