public function DenormalizableInterface::denormalize

Denormalizes the object back from an array of scalars|arrays.

It is important to understand that the denormalize() call should denormalize recursively all child objects of the implementor.

Parameters

DenormalizerInterface $denormalizer The denormalizer is given so that you: can use it to denormalize objects contained within this object.

array|scalar $data The data from which to re-create the object.:

string|null $format The format is optionally given to be able to denormalize differently: based on different input formats.

array $context options for denormalizing:

4 methods override DenormalizableInterface::denormalize()
DenormalizableDummy::denormalize in drupal/core/vendor/symfony/serializer/Symfony/Component/Serializer/Tests/Fixtures/DenormalizableDummy.php
Denormalizes the object back from an array of scalars|arrays.
Dummy::denormalize in drupal/core/vendor/symfony/serializer/Symfony/Component/Serializer/Tests/Fixtures/Dummy.php
Denormalizes the object back from an array of scalars|arrays.
NormalizableTraversableDummy::denormalize in drupal/core/vendor/symfony/serializer/Symfony/Component/Serializer/Tests/Fixtures/NormalizableTraversableDummy.php
Denormalizes the object back from an array of scalars|arrays.
ScalarDummy::denormalize in drupal/core/vendor/symfony/serializer/Symfony/Component/Serializer/Tests/Fixtures/ScalarDummy.php
Denormalizes the object back from an array of scalars|arrays.

File

drupal/core/vendor/symfony/serializer/Symfony/Component/Serializer/Normalizer/DenormalizableInterface.php, line 37

Class

DenormalizableInterface
Defines the most basic interface a class must implement to be denormalizable

Namespace

Symfony\Component\Serializer\Normalizer

Code

public function denormalize(DenormalizerInterface $denormalizer, $data, $format = null, array $context = array());