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

Breadcrumb

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

function ContextAwareDecoderInterface::supportsDecoding

Parameters

array $context options that decoders have access to:

Overrides DecoderInterface::supportsDecoding

2 methods override ContextAwareDecoderInterface::supportsDecoding()
ChainDecoder::supportsDecoding in vendor/symfony/serializer/Encoder/ChainDecoder.php
Checks whether the deserializer can decode from given format.
Serializer::supportsDecoding in vendor/symfony/serializer/Serializer.php
Checks whether the deserializer can decode from given format.

File

vendor/symfony/serializer/Encoder/ContextAwareDecoderInterface.php, line 24

Class

ContextAwareDecoderInterface
Adds the support of an extra $context parameter for the supportsDecoding method.

Namespace

Symfony\Component\Serializer\Encoder

Code

public function supportsDecoding(string $format, array $context = []) : bool;

API Navigation

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