You are here

public function CustomNormalizer::supportsNormalization in Zircon Profile 8

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

Checks if the given class implements the NormalizableInterface.

Parameters

mixed $data Data to normalize.:

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

Return value

bool

Overrides NormalizerInterface::supportsNormalization

File

vendor/symfony/serializer/Normalizer/CustomNormalizer.php, line 46

Class

CustomNormalizer
@author Jordi Boggiano <j.boggiano@seld.be>

Namespace

Symfony\Component\Serializer\Normalizer

Code

public function supportsNormalization($data, $format = null) {
  return $data instanceof NormalizableInterface;
}