30 calls to Json::encode()
- ActiveLinkResponseFilter::setLinkActiveClass in core/
lib/ Drupal/ Core/ EventSubscriber/ ActiveLinkResponseFilter.php - Sets the "is-active" class and aria-current attribute on relevant links.
- ActiveLinkResponseFilterTest::providerTestSetLinkActiveClass in core/
tests/ Drupal/ Tests/ Core/ EventSubscriber/ ActiveLinkResponseFilterTest.php - Provides test data for testSetLinkActiveClass().
- AjaxTestController::httpMethods in core/
modules/ system/ tests/ modules/ ajax_test/ src/ Controller/ AjaxTestController.php - Provides an Ajax link used with different HTTP methods.
- BigPipeTest::testBigPipe in core/
modules/ big_pipe/ tests/ src/ Functional/ BigPipeTest.php - Tests BigPipe-delivered HTML responses when JavaScript is enabled.
- BlockLibraryController::listBlocks in core/
modules/ block/ src/ Controller/ BlockLibraryController.php - Shows a list of blocks that can be added to a theme's layout.
- BlockListBuilder::buildBlocksForm in core/
modules/ block/ src/ BlockListBuilder.php - Builds the main "Blocks" portion of the form.
- CommentExtrasTest::testPostIndividualDxWithoutCriticalBaseFields in core/
modules/ jsonapi/ tests/ src/ Functional/ CommentExtrasTest.php - Tests POSTing a comment without critical base fields.
- CommentExtrasTest::testPostIndividualSkipCommentApproval in core/
modules/ jsonapi/ tests/ src/ Functional/ CommentExtrasTest.php - Tests POSTing a comment with and without 'skip comment approval'.
- ContextualLinks::render in core/
modules/ contextual/ src/ Plugin/ views/ field/ ContextualLinks.php - Overrides \Drupal\views\Plugin\views\field\FieldPluginBase::render().
- DisplayModeLocalAction::getOptions in core/
modules/ field_ui/ src/ DisplayModeLocalAction.php - Returns options for rendering a link for the local action.
- EntityForm::actions in core/
lib/ Drupal/ Core/ Entity/ EntityForm.php - Returns an array of supported actions for the current entity form.
- EntityListBuilder::getDefaultOperations in core/
lib/ Drupal/ Core/ Entity/ EntityListBuilder.php - Gets this list's default operations.
- 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
- FormTestFormStateValuesCleanForm::submitForm in core/
modules/ system/ tests/ modules/ form_test/ src/ Form/ FormTestFormStateValuesCleanForm.php - Form submission handler.
- FormTestVerticalTabsForm::submitForm in core/
modules/ system/ tests/ modules/ form_test/ src/ Form/ FormTestVerticalTabsForm.php - Form submission handler.
- 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…
- 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.
- LazyBuilders::renderAnnouncements in core/
modules/ announcements_feed/ src/ LazyBuilders.php - Render announcements.
- 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…
- PermissionsPerBundleTest::testInvalidValue in core/
tests/ Drupal/ KernelTests/ Core/ Recipe/ PermissionsPerBundleTest.php - Tests that there is an exception if the permission templates are invalid.
- template_preprocess_links in core/
includes/ theme.inc - Prepares variables for links templates.
- TestController::linksDisplay in core/
modules/ system/ tests/ modules/ off_canvas_test/ src/ Controller/ TestController.php - Displays test links that will open in off-canvas dialog.
- TestController::linksDisplay in core/
modules/ system/ tests/ modules/ dialog_renderer_test/ src/ Controller/ TestController.php - Displays test links that will open in the modal dialog.
- TimestampFormatter::viewElements in core/
lib/ Drupal/ Core/ Field/ Plugin/ Field/ FieldFormatter/ TimestampFormatter.php - Builds a renderable array for a field value.
- TwigExtensionTest::providerTestTwigSetAttribute in core/
tests/ Drupal/ Tests/ Core/ Template/ TwigExtensionTest.php - A data provider for ::testTwigSetAttribute().
- WorkspacesLazyBuilders::renderToolbarTab in core/
modules/ workspaces/ src/ WorkspacesLazyBuilders.php - Lazy builder callback for rendering the workspace toolbar tab.
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.