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

Breadcrumb

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

JsonEncoder::$format

Same name in this branch
  1. 11.1.x core/modules/jsonapi/src/Encoder/JsonEncoder.php \Drupal\jsonapi\Encoder\JsonEncoder::format

The formats that this Encoder supports.

Type: array

File

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

Class

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

Namespace

Drupal\serialization\Encoder

Code

protected static $format = [
    'json',
    'ajax',
];

API Navigation

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