3 namespace Drupal\serialization\Normalizer;
6 * Normalizes MarkupInterface objects into a string.
8 class MarkupNormalizer extends NormalizerBase {
11 * The interface or class that this Normalizer supports.
15 protected $supportedInterfaceOrClass = ['Drupal\Component\Render\MarkupInterface'];
20 public function normalize($object, $format = NULL, array $context = []) {
21 return (string) $object;