You are here

public function MarkupNormalizer::normalize in Drupal 9

Same name and namespace in other branches
  1. 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\Normalizer

Code

public function normalize($object, $format = NULL, array $context = []) {
  return (string) $object;
}