function TestExtendedNormalizer::getSupportedTypes
Same name in other branches
- 11.x core/modules/serialization/tests/src/Unit/Normalizer/ComplexDataNormalizerTest.php \Drupal\Tests\serialization\Unit\Normalizer\TestExtendedNormalizer::getSupportedTypes()
Overrides ComplexDataNormalizer::getSupportedTypes
File
-
core/
modules/ serialization/ tests/ src/ Unit/ Normalizer/ ComplexDataNormalizerTest.php, line 122
Class
- TestExtendedNormalizer
- Test normalizer with a different supported class.
Namespace
Drupal\Tests\serialization\Unit\NormalizerCode
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.