public function Serializer::denormalize

Denormalizes data back into an object of the given class

Parameters

mixed $data data to restore:

string $class the expected class to instantiate:

string $format format the given data was extracted from:

array $context options available to the denormalizer:

Return value

object

Overrides DenormalizerInterface::denormalize

1 call to Serializer::denormalize()
Serializer::deserialize in drupal/core/vendor/symfony/serializer/Symfony/Component/Serializer/Serializer.php
Deserializes data into the given type.

File

drupal/core/vendor/symfony/serializer/Symfony/Component/Serializer/Serializer.php, line 137

Class

Serializer
Serializer serializes and deserializes data

Namespace

Symfony\Component\Serializer

Code

public function denormalize($data, $type, $format = null, array $context = array()) {
  return $this
    ->denormalizeObject($data, $type, $format, $context);
}