public function MarkupNormalizer::normalize in Drupal 9
Same name and namespace in other branches
- 8 core/modules/serialization/src/Normalizer/MarkupNormalizer.php \Drupal\serialization\Normalizer\MarkupNormalizer::normalize()
File
- core/
modules/ serialization/ src/ Normalizer/ MarkupNormalizer.php, line 20
Class
- MarkupNormalizer
- Normalizes MarkupInterface objects into a string.
Namespace
Drupal\serialization\NormalizerCode
public function normalize($object, $format = NULL, array $context = []) {
return (string) $object;
}