You are here

public function TestNormalizer::supportsNormalization in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/serializer/Tests/Normalizer/TestNormalizer.php \Symfony\Component\Serializer\Tests\Normalizer\TestNormalizer::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/Tests/Normalizer/TestNormalizer.php, line 33

Class

TestNormalizer
Provides a test Normalizer which only implements the NormalizerInterface.

Namespace

Symfony\Component\Serializer\Tests\Normalizer

Code

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