public function NormalizerInterface::normalize in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/serializer/Normalizer/NormalizerInterface.php \Symfony\Component\Serializer\Normalizer\NormalizerInterface::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
15 methods override NormalizerInterface::normalize()
- ComplexDataNormalizer::normalize in core/
modules/ serialization/ src/ Normalizer/ ComplexDataNormalizer.php - Normalizes an object into a set of arrays/scalars.
- ContentEntityNormalizer::normalize in core/
modules/ hal/ src/ Normalizer/ ContentEntityNormalizer.php - Normalizes an object into a set of arrays/scalars.
- CustomNormalizer::normalize in vendor/
symfony/ serializer/ Normalizer/ CustomNormalizer.php - Normalizes an object into a set of arrays/scalars.
- FieldItemNormalizer::normalize in core/
modules/ hal/ src/ Normalizer/ FieldItemNormalizer.php - Normalizes an object into a set of arrays/scalars.
- FieldNormalizer::normalize in core/
modules/ hal/ src/ Normalizer/ FieldNormalizer.php - Normalizes an object into a set of arrays/scalars.
File
- vendor/
symfony/ serializer/ Normalizer/ NormalizerInterface.php, line 30
Class
- NormalizerInterface
- Defines the interface of normalizers.
Namespace
Symfony\Component\Serializer\NormalizerCode
public function normalize($object, $format = null, array $context = array());