Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. SerializerInterface.php

function SerializerInterface::deserialize

Deserializes data into the given type.

@template TObject of object @template TType of string|class-string<TObject>

@psalm-return (TType is class-string<TObject> ? TObject : mixed)

@phpstan-return ($type is class-string<TObject> ? TObject : mixed)

Parameters

TType $type:

array<string, mixed> $context:

2 methods override SerializerInterface::deserialize()
Serializer::deserialize in vendor/symfony/serializer/Serializer.php
Deserializes data into the given type.
TraceableSerializer::deserialize in vendor/symfony/serializer/Debug/TraceableSerializer.php
Deserializes data into the given type.

File

vendor/symfony/serializer/SerializerInterface.php, line 39

Class

SerializerInterface
@author Jordi Boggiano <j.boggiano@seld.be>

Namespace

Symfony\Component\Serializer

Code

public function deserialize(mixed $data, string $type, string $format, array $context = []) : mixed;

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal