function SerializationTestNormalizer::getSupportedTypes

Same name and namespace in other branches
  1. 10 core/modules/serialization/tests/serialization_test/src/SerializationTestNormalizer.php \Drupal\serialization_test\SerializationTestNormalizer::getSupportedTypes()
  2. main core/modules/serialization/tests/serialization_test/src/SerializationTestNormalizer.php \Drupal\serialization_test\SerializationTestNormalizer::getSupportedTypes()

File

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

Class

SerializationTestNormalizer
Serialization normalizer used for testing.

Namespace

Drupal\serialization_test

Code

public function getSupportedTypes(?string $format) : array {
  return [
    \stdClass::class => TRUE,
  ];
}

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