function TypedDataNormalizer::getSupportedTypes
Same name and namespace in other branches
- 11.x core/modules/serialization/src/Normalizer/TypedDataNormalizer.php \Drupal\serialization\Normalizer\TypedDataNormalizer::getSupportedTypes()
- 10 core/modules/serialization/src/Normalizer/TypedDataNormalizer.php \Drupal\serialization\Normalizer\TypedDataNormalizer::getSupportedTypes()
Overrides NormalizerBase::getSupportedTypes
File
-
core/
modules/ serialization/ src/ Normalizer/ TypedDataNormalizer.php, line 63
Class
- TypedDataNormalizer
- Normalizes typed data objects into strings or arrays.
Namespace
Drupal\serialization\NormalizerCode
public function getSupportedTypes(?string $format) : array {
return [
TypedDataInterface::class => TRUE,
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.