function SerializationTestNormalizer::supportsNormalization

Same name in other branches
  1. 9 core/modules/serialization/tests/serialization_test/src/SerializationTestNormalizer.php \Drupal\serialization_test\SerializationTestNormalizer::supportsNormalization()
  2. 8.9.x core/modules/serialization/tests/serialization_test/src/SerializationTestNormalizer.php \Drupal\serialization_test\SerializationTestNormalizer::supportsNormalization()
  3. 10 core/modules/serialization/tests/serialization_test/src/SerializationTestNormalizer.php \Drupal\serialization_test\SerializationTestNormalizer::supportsNormalization()

File

core/modules/serialization/tests/serialization_test/src/SerializationTestNormalizer.php, line 32

Class

SerializationTestNormalizer

Namespace

Drupal\serialization_test

Code

public function supportsNormalization($data, ?string $format = NULL, array $context = []) : bool {
    return static::$format === $format;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.