class MarkupNormalizer in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/serialization/src/Normalizer/MarkupNormalizer.php \Drupal\serialization\Normalizer\MarkupNormalizer
Normalizes MarkupInterface objects into a string.
Hierarchy
- class \Symfony\Component\Serializer\Normalizer\SerializerAwareNormalizer implements SerializerAwareInterface
- class \Drupal\serialization\Normalizer\NormalizerBase implements NormalizerInterface
- class \Drupal\serialization\Normalizer\MarkupNormalizer
- class \Drupal\serialization\Normalizer\NormalizerBase implements NormalizerInterface
Expanded class hierarchy of MarkupNormalizer
1 string reference to 'MarkupNormalizer'
- serialization.services.yml in core/
modules/ serialization/ serialization.services.yml - core/modules/serialization/serialization.services.yml
1 service uses MarkupNormalizer
- serializer.normalizer.safe_string in core/
modules/ serialization/ serialization.services.yml - Drupal\serialization\Normalizer\MarkupNormalizer
File
- core/
modules/ serialization/ src/ Normalizer/ MarkupNormalizer.php, line 13 - Contains \Drupal\serialization\Normalizer\MarkupNormalizer.
Namespace
Drupal\serialization\NormalizerView source
class MarkupNormalizer extends NormalizerBase {
/**
* The interface or class that this Normalizer supports.
*
* @var array
*/
protected $supportedInterfaceOrClass = array(
'Drupal\\Component\\Render\\MarkupInterface',
);
/**
* {@inheritdoc}
*/
public function normalize($object, $format = NULL, array $context = array()) {
return (string) $object;
}
}