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 11.x for js
  5. Other projects
Title Object type File name Summary
jsonapi_test_reference_types_entity_base_field_info function core/modules/jsonapi/tests/modules/jsonapi_test_reference_types/jsonapi_test_reference_types.module Implements hook_entity_base_field_info().
jsonapi_test_resource_type_building.build_subscriber service core/modules/jsonapi/tests/modules/jsonapi_test_resource_type_building/jsonapi_test_resource_type_building.services.yml Drupal\jsonapi_test_resource_type_building\EventSubscriber\ResourceTypeBuildEventSubscriber
jsonapi_test_resource_type_building.info.yml file core/modules/jsonapi/tests/modules/jsonapi_test_resource_type_building/jsonapi_test_resource_type_building.info.yml core/modules/jsonapi/tests/modules/jsonapi_test_resource_type_building/jsonapi_test_resource_type_building.info.yml
jsonapi_test_resource_type_building.services.yml file core/modules/jsonapi/tests/modules/jsonapi_test_resource_type_building/jsonapi_test_resource_type_building.services.yml core/modules/jsonapi/tests/modules/jsonapi_test_resource_type_building/jsonapi_test_resource_type_building.services.yml
jsonapi_test_user.info.yml file core/modules/jsonapi/tests/modules/jsonapi_test_user/jsonapi_test_user.info.yml core/modules/jsonapi/tests/modules/jsonapi_test_user/jsonapi_test_user.info.yml
jsonapi_test_user.module file core/modules/jsonapi/tests/modules/jsonapi_test_user/jsonapi_test_user.module Support module for JSON:API user hooks testing.
jsonapi_test_user_user_format_name_alter function core/modules/jsonapi/tests/modules/jsonapi_test_user/jsonapi_test_user.module Implements hook_user_format_name_alter().
jsonapi_update_last_removed function core/modules/jsonapi/jsonapi.install Implements hook_update_last_removed().
JsOnceTestController class core/modules/system/tests/modules/js_once_test/src/Controller/JsOnceTestController.php Controller for testing the @drupal/once library integration.
JsOnceTestController.php file core/modules/system/tests/modules/js_once_test/src/Controller/JsOnceTestController.php
JsOnceTestController::onceTest function core/modules/system/tests/modules/js_once_test/src/Controller/JsOnceTestController.php Provides elements for testing @drupal/once.
JsonEncoder class core/modules/jsonapi/src/Encoder/JsonEncoder.php Encodes JSON:API data.
JsonEncoder class core/modules/serialization/src/Encoder/JsonEncoder.php Adds 'ajax' to the supported content types of the JSON encoder.
JsonEncoder.php file core/modules/serialization/src/Encoder/JsonEncoder.php
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 @coversDefaultClass \Drupal\serialization\Encoder\JsonEncoder[[api-linebreak]]
@group serialization
JsonEncoderTest.php file core/modules/serialization/tests/src/Unit/Encoder/JsonEncoderTest.php
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.
JsonTest class core/tests/Drupal/Tests/Component/Serialization/JsonTest.php @coversDefaultClass \Drupal\Component\Serialization\Json[[api-linebreak]]
@group Serialization
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.
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.
JsOptimizer::optimize function core/lib/Drupal/Core/Asset/JsOptimizer.php Optimizes an asset.
JsOptimizer::__construct function core/lib/Drupal/Core/Asset/JsOptimizer.php Constructs a new JsOptimizer object.
JsOptimizerUnitTest class core/tests/Drupal/Tests/Core/Asset/JsOptimizerUnitTest.php Tests the JS asset optimizer.
JsOptimizerUnitTest.php file core/tests/Drupal/Tests/Core/Asset/JsOptimizerUnitTest.php
JsOptimizerUnitTest::$optimizer property core/tests/Drupal/Tests/Core/Asset/JsOptimizerUnitTest.php A JS asset optimizer.
JsOptimizerUnitTest::providerTestClean function core/tests/Drupal/Tests/Core/Asset/JsOptimizerUnitTest.php Provides data for the JS asset cleaning test.
JsOptimizerUnitTest::providerTestOptimize function core/tests/Drupal/Tests/Core/Asset/JsOptimizerUnitTest.php Provides data for the JS asset optimize test.

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