public function ObjectNormalizer::supportsNormalization in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/serializer/Normalizer/ObjectNormalizer.php \Symfony\Component\Serializer\Normalizer\ObjectNormalizer::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
File
- vendor/
symfony/ serializer/ Normalizer/ ObjectNormalizer.php, line 44
Class
- ObjectNormalizer
- Converts between objects and arrays using the PropertyAccess component.
Namespace
Symfony\Component\Serializer\NormalizerCode
public function supportsNormalization($data, $format = null) {
return is_object($data) && !$data instanceof \Traversable;
}