function MarkupNormalizer::doNormalize

Overrides SchematicNormalizerTrait::doNormalize

File

core/modules/serialization/src/Normalizer/MarkupNormalizer.php, line 18

Class

MarkupNormalizer
Normalizes MarkupInterface objects into a string.

Namespace

Drupal\serialization\Normalizer

Code

public function doNormalize($object, $format = NULL, array $context = []) : array|string|int|float|bool|\ArrayObject|null {
    return (string) $object;
}

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