function MarkupNormalizer::normalize

Same name in other branches
  1. 8.9.x core/modules/serialization/src/Normalizer/MarkupNormalizer.php \Drupal\serialization\Normalizer\MarkupNormalizer::normalize()
  2. 10 core/modules/serialization/src/Normalizer/MarkupNormalizer.php \Drupal\serialization\Normalizer\MarkupNormalizer::normalize()
  3. 11.x 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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.