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

Breadcrumb

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

function Json::decode

Overrides SerializationInterface::decode

14 calls to Json::decode()
AllowedScaffoldPackagesValidator::validate in core/modules/package_manager/src/Validator/AllowedScaffoldPackagesValidator.php
Validates that only the implicitly allowed packages can use scaffolding.
AnnounceFetcher::fetch in core/modules/announcements_feed/src/AnnounceFetcher.php
Fetches the feed either from a local cache or fresh remotely.
CKEditor5::validateConfigurationForm in core/modules/ckeditor5/src/Plugin/Editor/CKEditor5.php
Form validation handler.
ComposerPatchesValidator::computePatcherStatus in core/modules/package_manager/src/Validator/ComposerPatchesValidator.php
Computes the status of the patcher plugin in a particular directory.
ContextualHooks::contextualLinksViewAlter in core/modules/contextual/src/Hook/ContextualHooks.php
Implements hook_contextual_links_view_alter().

... See full list

File

core/lib/Drupal/Component/Serialization/Json.php, line 25

Class

Json
Default serialization for JSON.

Namespace

Drupal\Component\Serialization

Code

public static function decode($string) {
    return json_decode($string, TRUE);
}
RSS feed
Powered by Drupal