Search for all

  1. Search 7.x for all
  2. Search 9.5.x for all
  3. Search 8.9.x for all
  4. Search 10.3.x for all
  5. Search 11.x for all
  6. Other projects
Title Object type File name Summary
JsonEncoder.php file core/modules/jsonapi/src/Encoder/JsonEncoder.php
JsonEncoder::$format property core/modules/jsonapi/src/Encoder/JsonEncoder.php The formats that this Encoder supports.
JsonEncoder::$format property core/modules/serialization/src/Encoder/JsonEncoder.php The formats that this Encoder supports.
JsonEncoder::supportsDecoding function core/modules/serialization/src/Encoder/JsonEncoder.php
JsonEncoder::supportsEncoding function core/modules/serialization/src/Encoder/JsonEncoder.php
JsonEncoder::__construct function core/modules/serialization/src/Encoder/JsonEncoder.php
JsonEncoderTest class core/modules/serialization/tests/src/Unit/Encoder/JsonEncoderTest.php Tests Drupal\serialization\Encoder\JsonEncoder.
JsonEncoderTest class core/modules/jsonapi/tests/src/Unit/Encoder/JsonEncoderTest.php Tests the JSON:API encoder.
JsonEncoderTest.php file core/modules/jsonapi/tests/src/Unit/Encoder/JsonEncoderTest.php
JsonEncoderTest.php file core/modules/serialization/tests/src/Unit/Encoder/JsonEncoderTest.php
JsonEncoderTest::$encoder property core/modules/serialization/tests/src/Unit/Encoder/JsonEncoderTest.php The encoder under test.
JsonEncoderTest::$encoder property core/modules/jsonapi/tests/src/Unit/Encoder/JsonEncoderTest.php The encoder under test.
JsonEncoderTest::setUp function core/modules/jsonapi/tests/src/Unit/Encoder/JsonEncoderTest.php
JsonEncoderTest::setUp function core/modules/serialization/tests/src/Unit/Encoder/JsonEncoderTest.php
JsonEncoderTest::testEncodeInvalidUtf8IsSubstituted function core/modules/serialization/tests/src/Unit/Encoder/JsonEncoderTest.php Tests that invalid UTF-8 is handled via JSON_INVALID_UTF8_SUBSTITUTE.
JsonEncoderTest::testHtmlUnsafeCharactersAreEscaped function core/modules/serialization/tests/src/Unit/Encoder/JsonEncoderTest.php Tests that HTML-unsafe characters are still escaped.
JsonEncoderTest::testInheritsControlCharacterHandling function core/modules/jsonapi/tests/src/Unit/Encoder/JsonEncoderTest.php Tests JSON:API encoder inherits control character handling.
JsonEncoderTest::testStructuredDataSmokeTest function core/modules/serialization/tests/src/Unit/Encoder/JsonEncoderTest.php Simple structured data smoke test.
JsonEncoderTest::testSupportsEncoding function core/modules/serialization/tests/src/Unit/Encoder/JsonEncoderTest.php Tests the supportsEncoding() method.
JsonEncoderTest::testSupportsEncoding function core/modules/jsonapi/tests/src/Unit/Encoder/JsonEncoderTest.php Tests the supportsEncoding() method.
JsonRenderer class core/modules/system/tests/modules/common_test/src/Render/MainContent/JsonRenderer.php Default main content renderer for JSON requests.
JsonRenderer.php file core/modules/system/tests/modules/common_test/src/Render/MainContent/JsonRenderer.php
JsonRenderer::$renderer property core/modules/system/tests/modules/common_test/src/Render/MainContent/JsonRenderer.php The renderer service.
JsonRenderer::$titleResolver property core/modules/system/tests/modules/common_test/src/Render/MainContent/JsonRenderer.php The title resolver.
JsonRenderer::renderResponse function core/modules/system/tests/modules/common_test/src/Render/MainContent/JsonRenderer.php Renders the main content render array into a response.
JsonRenderer::__construct function core/modules/system/tests/modules/common_test/src/Render/MainContent/JsonRenderer.php Constructs a new JsonRenderer.
JsonSchema class core/lib/Drupal/Core/Serialization/Attribute/JsonSchema.php Attribute for methods to express the JSON Schema of its return value.
JsonSchema.php file core/lib/Drupal/Core/Serialization/Attribute/JsonSchema.php
JsonSchema::getJsonSchema function core/lib/Drupal/Core/Serialization/Attribute/JsonSchema.php Get a JSON Schema type definition array.
JsonSchema::__construct function core/lib/Drupal/Core/Serialization/Attribute/JsonSchema.php Constructor.
JsonSchemaProviderSerializerInterface interface core/modules/serialization/src/Serializer/JsonSchemaProviderSerializerInterface.php Interface for JSON schema provider.
JsonSchemaProviderSerializerInterface.php file core/modules/serialization/src/Serializer/JsonSchemaProviderSerializerInterface.php
JsonSchemaProviderSerializerInterface::getJsonSchema function core/modules/serialization/src/Serializer/JsonSchemaProviderSerializerInterface.php Convenience method to get a JSON schema.
JsonSchemaProviderSerializerTrait trait core/modules/serialization/src/Serializer/JsonSchemaProviderSerializerTrait.php Trait for normalizing the JSON schema.
JsonSchemaProviderSerializerTrait.php file core/modules/serialization/src/Serializer/JsonSchemaProviderSerializerTrait.php
JsonSchemaProviderSerializerTrait::getJsonSchema function core/modules/serialization/src/Serializer/JsonSchemaProviderSerializerTrait.php
JsonSchemaReflectionTrait trait core/modules/serialization/src/Normalizer/JsonSchemaReflectionTrait.php Interface for using reflection with the JSON object.
JsonSchemaReflectionTrait.php file core/modules/serialization/src/Normalizer/JsonSchemaReflectionTrait.php
JsonSchemaReflectionTrait::getJsonSchemaForMethod function core/modules/serialization/src/Normalizer/JsonSchemaReflectionTrait.php Get a JSON Schema based on method reflection.
JsonSchemaTestTrait trait core/modules/serialization/tests/src/Traits/JsonSchemaTestTrait.php Trait for testing JSON Schema validity and fit to sample data.
JsonSchemaTestTrait.php file core/modules/serialization/tests/src/Traits/JsonSchemaTestTrait.php
JsonSchemaTestTrait::doCheckSchemaAgainstMetaSchema function core/modules/serialization/tests/src/Traits/JsonSchemaTestTrait.php Check a schema is valid against the meta-schema.
JsonSchemaTestTrait::doProphesize function core/modules/serialization/tests/src/Traits/JsonSchemaTestTrait.php Method to make prophecy public for use in data provider closures.
JsonSchemaTestTrait::doTestJsonSchemaIsValid function core/modules/serialization/tests/src/Traits/JsonSchemaTestTrait.php Validate the normalizer's JSON schema.
JsonSchemaTestTrait::getJsonSchemaTestNormalizationFormat function core/modules/serialization/tests/src/Traits/JsonSchemaTestTrait.php Format that should be used when performing test normalizations.
JsonSchemaTestTrait::getNormalizationForValue function core/modules/serialization/tests/src/Traits/JsonSchemaTestTrait.php Get the normalization for a value.
JsonSchemaTestTrait::getNormalizer function core/modules/serialization/tests/src/Traits/JsonSchemaTestTrait.php Helper method to retrieve the normalizer.
JsonSchemaTestTrait::getValidator function core/modules/serialization/tests/src/Traits/JsonSchemaTestTrait.php Get the JSON Schema Validator.
JsonSchemaTestTrait::jsonSchemaDataProvider function core/modules/serialization/tests/src/Traits/JsonSchemaTestTrait.php Data provider for ::testNormalizedValuesAgainstJsonSchema.
JsonSchemaTestTrait::supportedTypesDataProvider function core/modules/serialization/tests/src/Traits/JsonSchemaTestTrait.php

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.