public function MarkupNormalizer::normalize in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/serialization/src/Normalizer/MarkupNormalizer.php \Drupal\serialization\Normalizer\MarkupNormalizer::normalize()
Normalizes an object into a set of arrays/scalars.
Parameters
object $object object to normalize:
string $format format the normalization result will be encoded as:
array $context Context options for the normalizer:
Return value
array|string|bool|int|float|null
Overrides NormalizerInterface::normalize
File
- core/
modules/ serialization/ src/ Normalizer/ MarkupNormalizer.php, line 25 - Contains \Drupal\serialization\Normalizer\MarkupNormalizer.
Class
- MarkupNormalizer
- Normalizes MarkupInterface objects into a string.
Namespace
Drupal\serialization\NormalizerCode
public function normalize($object, $format = NULL, array $context = array()) {
return (string) $object;
}