public static function Json::decode in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/lib/Drupal/Component/Serialization/Json.php \Drupal\Component\Serialization\Json::decode()
Decodes data from the serialization format.
Parameters
string $raw: The raw data string to decode.
Return value
mixed The decoded data.
Overrides SerializationInterface::decode
46 calls to Json::decode()
- AssertContentTrait::setRawContent in core/
modules/ simpletest/ src/ AssertContentTrait.php - Sets the raw content (e.g. HTML).
- AttachedAssetsTest::testSettings in core/
modules/ system/ src/ Tests/ Common/ AttachedAssetsTest.php - Tests JavaScript settings.
- BasicTest::testViewsWizardAndListing in core/
modules/ views/ src/ Tests/ Wizard/ BasicTest.php - CommentNewIndicatorTest::testCommentNewCommentsIndicator in core/
modules/ comment/ src/ Tests/ CommentNewIndicatorTest.php - Tests new comment marker.
- CommentRestExportTest::testCommentRestExport in core/
modules/ comment/ src/ Tests/ Views/ CommentRestExportTest.php - Test comment row.
File
- core/
lib/ Drupal/ Component/ Serialization/ Json.php, line 30 - Contains \Drupal\Component\Serialization\Json.
Class
- Json
- Default serialization for JSON.
Namespace
Drupal\Component\SerializationCode
public static function decode($string) {
return json_decode($string, TRUE);
}