interface NormalizerInterface in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/serializer/Normalizer/NormalizerInterface.php \Symfony\Component\Serializer\Normalizer\NormalizerInterface
Defines the interface of normalizers.
@author Jordi Boggiano <j.boggiano@seld.be>
Hierarchy
- interface \Symfony\Component\Serializer\Normalizer\NormalizerInterface
Expanded class hierarchy of NormalizerInterface
All classes that implement NormalizerInterface
14 files declare their use of NormalizerInterface
- ChainEntityResolver.php in core/
modules/ serialization/ src/ EntityResolver/ ChainEntityResolver.php - Contains \Drupal\serialization\EntityResolver\ChainEntityResolver.
- Dummy.php in vendor/
symfony/ serializer/ Tests/ Fixtures/ Dummy.php - EntityResolverInterface.php in core/
modules/ serialization/ src/ EntityResolver/ EntityResolverInterface.php - Contains \Drupal\serialization\EntityResolver\EntityResolverInterface.
- GetSetMethodNormalizerTest.php in vendor/
symfony/ serializer/ Tests/ Normalizer/ GetSetMethodNormalizerTest.php - NormalizableTraversableDummy.php in vendor/
symfony/ serializer/ Tests/ Fixtures/ NormalizableTraversableDummy.php
File
- vendor/
symfony/ serializer/ Normalizer/ NormalizerInterface.php, line 19
Namespace
Symfony\Component\Serializer\NormalizerView source
interface NormalizerInterface {
/**
* Normalizes an object into a set of arrays/scalars.
*
* @param object $object object to normalize
* @param string $format format the normalization result will be encoded as
* @param array $context Context options for the normalizer
*
* @return array|string|bool|int|float|null
*/
public function normalize($object, $format = null, array $context = array());
/**
* Checks whether the given class is supported for normalization by this normalizer.
*
* @param mixed $data Data to normalize.
* @param string $format The format being (de-)serialized from or into.
*
* @return bool
*/
public function supportsNormalization($data, $format = null);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
NormalizerInterface:: |
public | function | Normalizes an object into a set of arrays/scalars. | 15 |
NormalizerInterface:: |
public | function | Checks whether the given class is supported for normalization by this normalizer. | 8 |