17 calls to Json::encode()

ActiveLinkResponseFilter::setLinkActiveClass in core/lib/Drupal/Core/EventSubscriber/ActiveLinkResponseFilter.php
Sets the "is-active" class on relevant links.
ActiveLinkResponseFilterTest::providerTestSetLinkActiveClass in core/tests/Drupal/Tests/Core/EventSubscriber/ActiveLinkResponseFilterTest.php
Provides test data for testSetLinkActiveClass().
CKEditorAdminTest::testExistingFormat in core/modules/ckeditor/tests/src/Functional/CKEditorAdminTest.php
Tests configuring a text editor for an existing text format.
CKEditorToolbarButtonTest::testImageButtonDisplay in core/modules/ckeditor/tests/src/Functional/CKEditorToolbarButtonTest.php
Method tests CKEditor image buttons.
EditorIntegrationTest::testGetUntransformedTextCommand in core/modules/quickedit/tests/src/Kernel/EditorIntegrationTest.php
Tests GetUntransformedTextCommand AJAX command.
FormHelper::processStates in core/lib/Drupal/Core/Form/FormHelper.php
Adds JavaScript to change the state of an element based on another element.
FormHelperTest::testProcessStates in core/tests/Drupal/Tests/Core/Form/FormHelperTest.php
@covers ::processStates[[api-linebreak]] @dataProvider providerElements
JsCollectionRenderer::render in core/lib/Drupal/Core/Asset/JsCollectionRenderer.php
This class evaluates the aggregation enabled/disabled condition on a group by group basis by testing whether an aggregate file has been made for the group rather than by testing the site-wide aggregation setting. This allows this class to work…
JsonApiDocumentTopLevelNormalizerTest::testDenormalizeInvalidTypeAndNoType in core/modules/jsonapi/tests/src/Kernel/Normalizer/JsonApiDocumentTopLevelNormalizerTest.php
Tests denormalization for related resources with missing or invalid types.
JsonApiDocumentTopLevelNormalizerTest::testDenormalizeUuid in core/modules/jsonapi/tests/src/Kernel/Normalizer/JsonApiDocumentTopLevelNormalizerTest.php
Try to POST a node and check if it exists afterwards.
JsonTest::testEncodingLength in core/tests/Drupal/Tests/Component/Serialization/JsonTest.php
Tests encoding length.
JsonTest::testEncodingStartEnd in core/tests/Drupal/Tests/Component/Serialization/JsonTest.php
Tests end and start of the encoded string.
JsonTest::testReversibility in core/tests/Drupal/Tests/Component/Serialization/JsonTest.php
Tests converting PHP variables to JSON strings and back.
JsonTest::testStructuredReversibility in core/tests/Drupal/Tests/Component/Serialization/JsonTest.php
Tests the reversibility of structured data.
LinkGenerator::generate in core/lib/Drupal/Core/Utility/LinkGenerator.php
For anonymous users, the "active" class will be calculated on the server, because most sites serve each anonymous user the same cached page anyway. For authenticated users, the "active" class will be calculated on the client…
template_preprocess_links in core/includes/theme.inc
Prepares variables for links templates.
workspaces_toolbar in core/modules/workspaces/workspaces.module
Implements hook_toolbar().

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