Search for js

  1. Search 7.x for js
  2. Search 9.5.x for js
  3. Search 8.9.x for js
  4. Search 10.3.x for js
  5. Other projects
Title Object type File name Summary
JsonEncoderTest::testSupportsEncoding function core/modules/serialization/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
JsonSchemaTestTrait::testNormalizedValuesAgainstJsonSchema function core/modules/serialization/tests/src/Traits/JsonSchemaTestTrait.php Test normalized values against the JSON schema.
JsonSchemaTestTrait::testSupportedTypesSchemaIsValid function core/modules/serialization/tests/src/Traits/JsonSchemaTestTrait.php Test that a valid schema is returned for the explicitly supported types.
JsonTest class core/tests/Drupal/Tests/Component/Serialization/JsonTest.php Tests Drupal\Component\Serialization\Json.
JsonTest.php file core/tests/Drupal/Tests/Component/Serialization/JsonTest.php
JsonTest::$htmlUnsafe property core/tests/Drupal/Tests/Component/Serialization/JsonTest.php An array of unsafe html characters which has to be encoded.
JsonTest::$htmlUnsafeEscaped property core/tests/Drupal/Tests/Component/Serialization/JsonTest.php An array of unsafe html characters which are already escaped.
JsonTest::$string property core/tests/Drupal/Tests/Component/Serialization/JsonTest.php A test string with the full ASCII table.
JsonTest::setUp function core/tests/Drupal/Tests/Component/Serialization/JsonTest.php
JsonTest::testEncodingAscii function core/tests/Drupal/Tests/Component/Serialization/JsonTest.php Tests encoding for every ASCII character.
JsonTest::testEncodingLength function core/tests/Drupal/Tests/Component/Serialization/JsonTest.php Tests encoding length.
JsonTest::testEncodingStartEnd function core/tests/Drupal/Tests/Component/Serialization/JsonTest.php Tests end and start of the encoded string.
JsonTest::testReversibility function core/tests/Drupal/Tests/Component/Serialization/JsonTest.php Tests converting PHP variables to JSON strings and back.
JsonTest::testStructuredReversibility function core/tests/Drupal/Tests/Component/Serialization/JsonTest.php Tests the reversibility of structured data.
JsonTestFieldFilterAccessHooks class core/modules/jsonapi/tests/modules/jsonapi_test_field_filter_access/src/Hook/JsonTestFieldFilterAccessHooks.php Hook implementations for jsonapi_test_field_filter_access.
JsonTestFieldFilterAccessHooks.php file core/modules/jsonapi/tests/modules/jsonapi_test_field_filter_access/src/Hook/JsonTestFieldFilterAccessHooks.php
JsonTestFieldFilterAccessHooks::jsonapiEntityFieldFilterAccess function core/modules/jsonapi/tests/modules/jsonapi_test_field_filter_access/src/Hook/JsonTestFieldFilterAccessHooks.php Implements hook_jsonapi_entity_field_filter_access().
JsOptimizer class core/lib/Drupal/Core/Asset/JsOptimizer.php Optimizes a JavaScript asset.
JsOptimizer.php file core/lib/Drupal/Core/Asset/JsOptimizer.php
JsOptimizer::clean function core/lib/Drupal/Core/Asset/JsOptimizer.php Processes the contents of a javascript asset for cleanup.

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