Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Json.php

29 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.
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.
CKEditor5::buildConfigurationForm in core/modules/ckeditor5/src/Plugin/Editor/CKEditor5.php
Form constructor.
ConfigTranslationController::itemPage in core/modules/config_translation/src/Controller/ConfigTranslationController.php
Language translations overview page for a configuration name.
ContentModerationConfigureForm::buildConfigurationForm in core/modules/content_moderation/src/Form/ContentModerationConfigureForm.php
Form constructor.
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.
EntityDisplayModeController::formModeTypeSelection in core/modules/field_ui/src/Controller/EntityDisplayModeController.php
Provides a list of eligible entity types for adding form modes.
EntityDisplayModeController::viewModeTypeSelection in core/modules/field_ui/src/Controller/EntityDisplayModeController.php
Provides a list of eligible entity types for adding view modes.
EntityDisplayModeListBuilder::getOperations in core/modules/field_ui/src/EntityDisplayModeListBuilder.php
Provides an array of information to build a list of operation links.
EntityDisplayModeListBuilder::render in core/modules/field_ui/src/EntityDisplayModeListBuilder.php
Builds the entity listing as renderable array for table.html.twig.
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.
FieldConfigListBuilder::getDefaultOperations in core/modules/field_ui/src/FieldConfigListBuilder.php
Gets this list's default operations.
FieldUiLocalAction::getDerivativeDefinitions in core/modules/field_ui/src/Plugin/Derivative/FieldUiLocalAction.php
Gets the definition of all derivatives of a base plugin.
FormHelper::processStates in core/lib/Drupal/Core/Form/FormHelper.php
Adds JavaScript to change the state of an element based on another element.
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…
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…
ResourceFetcher::parseResourceXml in core/modules/media/src/OEmbed/ResourceFetcher.php
Parses XML resource data.
ResourceResponseValidator::validateSchema in core/modules/jsonapi/src/EventSubscriber/ResourceResponseValidator.php
Validates a string against a JSON Schema. It logs any possible errors.
SecurityAdvisoriesFetcher::getSecurityAdvisories in core/modules/system/src/SecurityAdvisories/SecurityAdvisoriesFetcher.php
Gets security advisories that are applicable for the current site.
SourcePluginBase::__construct in core/modules/migrate/src/Plugin/migrate/source/SourcePluginBase.php
template_preprocess_links in core/includes/theme.inc
Prepares variables for links templates.
TimestampFormatter::viewElements in core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/TimestampFormatter.php
Builds a renderable array for a field value.
WorkspaceListBuilder::offCanvasRender in core/modules/workspaces/src/WorkspaceListBuilder.php
Renders the off canvas elements.
WorkspacesLazyBuilders::renderToolbarTab in core/modules/workspaces/src/WorkspacesLazyBuilders.php
Lazy builder callback for rendering the workspace toolbar tab.
_locale_rebuild_js in core/modules/locale/locale.module
(Re-)Creates the JavaScript translation file for a language.

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal