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

Breadcrumb

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

interface ContextAwareDecoderInterface

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

@author Kévin Dunglas <dunglas@gmail.com>

Hierarchy

  • interface \Symfony\Component\Serializer\Encoder\DecoderInterface
    • interface \Symfony\Component\Serializer\Encoder\ContextAwareDecoderInterface extends \Symfony\Component\Serializer\Encoder\DecoderInterface

Expanded class hierarchy of ContextAwareDecoderInterface

All classes that implement ContextAwareDecoderInterface

1 file declares its use of ContextAwareDecoderInterface
Serializer.php in vendor/symfony/serializer/Serializer.php

File

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

Namespace

Symfony\Component\Serializer\Encoder
View source
interface ContextAwareDecoderInterface extends DecoderInterface {
    
    /**
     * @param array $context options that decoders have access to
     */
    public function supportsDecoding(string $format, array $context = []) : bool;

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title Overrides
ContextAwareDecoderInterface::supportsDecoding public function Overrides DecoderInterface::supportsDecoding 2
DecoderInterface::decode public function Decodes a string into PHP data. 10
RSS feed
Powered by Drupal