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

Breadcrumb

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

function JsonEncoder::supportsDecoding

Same name in this branch
  1. 11.1.x vendor/symfony/serializer/Encoder/JsonEncoder.php \Symfony\Component\Serializer\Encoder\JsonEncoder::supportsDecoding()

Overrides JsonEncoder::supportsDecoding

File

core/modules/serialization/src/Encoder/JsonEncoder.php, line 47

Class

JsonEncoder
Adds 'ajax' to the supported content types of the JSON encoder.

Namespace

Drupal\serialization\Encoder

Code

public function supportsDecoding(string $format, array $context = []) : bool {
    return in_array($format, static::$format);
}

API Navigation

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