final public function ChainDecoder::decode

Decodes a string into PHP data

Parameters

scalar $data Data to decode:

string $format Format name:

Return value

mixed

Overrides DecoderInterface::decode

File

drupal/core/vendor/symfony/serializer/Symfony/Component/Serializer/Encoder/ChainDecoder.php, line 37

Class

ChainDecoder
Decoder delegating the decoding to a chain of decoders.

Namespace

Symfony\Component\Serializer\Encoder

Code

public final function decode($data, $format) {
  return $this
    ->getDecoder($format)
    ->decode($data, $format);
}