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

Breadcrumb

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

76 calls to json_encode()

AbstractBrowser::jsonRequest in vendor/symfony/browser-kit/AbstractBrowser.php
Converts the request parameters into a JSON string and uses it as request content.
AbstractWebDriver::curl in vendor/lullabot/php-webdriver/lib/WebDriver/AbstractWebDriver.php
Curl request to webdriver server.
ArrayLoader::configureObject in vendor/composer/composer/src/Composer/Package/Loader/ArrayLoader.php
ArrayLoader::createObject in vendor/composer/composer/src/Composer/Package/Loader/ArrayLoader.php
@template PackageClass of CompletePackage
BaseConstraint::arrayToObjectRecursive in vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/BaseConstraint.php
Recursively cast an associative array to an object
Bitbucket::requestAccessToken in vendor/composer/composer/src/Composer/Util/Bitbucket.php
Bitbucket::storeInAuthConfig in vendor/composer/composer/src/Composer/Util/Bitbucket.php
Store the new/updated credentials to the configuration
BulkForm::calculateEntityBulkFormKey in core/modules/views/src/Plugin/views/field/BulkForm.php
Calculates a bulk form key.
Cache::save in vendor/squizlabs/php_codesniffer/src/Util/Cache.php
Saves the current cache to the filesystem.
CallbackValidator::validate in vendor/symfony/validator/Constraints/CallbackValidator.php
Checks if the passed value is valid.
CheckpointStorage::checkpoint in core/lib/Drupal/Core/Config/Checkpoint/CheckpointStorage.php
Creates a checkpoint, if required, and returns the active checkpoint.
ComponentGenerator::encode in composer/Generator/ComponentGenerator.php
Utility function to encode package json in a consistent way.
ComposerRepository::createPackages in vendor/composer/composer/src/Composer/Repository/ComposerRepository.php
ConfigCommand::handleMultiValue in vendor/composer/composer/src/Composer/Command/ConfigCommand.php
ConfigCommand::listConfiguration in vendor/composer/composer/src/Composer/Command/ConfigCommand.php
Display the contents of the file in a pretty formatted way
ConfigSync::buildForm in core/modules/config/src/Form/ConfigSync.php
Form constructor.
ConsoleExporter::export in vendor/open-telemetry/sdk/Logs/Exporter/ConsoleExporter.php
ConsoleSpanExporter::export in vendor/open-telemetry/sdk/Trace/SpanExporter/ConsoleSpanExporter.php
@psalm-return FutureInterface<bool>
CurlService::execute in vendor/lullabot/php-webdriver/lib/WebDriver/Service/CurlService.php
Send protocol request to WebDriver server using curl extension API.
Dashboard::complexity in vendor/phpunit/php-code-coverage/src/Report/Html/Renderer/Dashboard.php
Returns the data for the Class/Method Complexity charts.
Dashboard::coverageDistribution in vendor/phpunit/php-code-coverage/src/Report/Html/Renderer/Dashboard.php
Returns the data for the Class / Method Coverage Distribution chart.
DefaultResultCache::persist in vendor/phpunit/phpunit/src/Runner/ResultCache/DefaultResultCache.php
DocParser::Annotation in vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php
Annotation ::= "@" AnnotationName MethodCall AnnotationName ::= QualifiedName | SimpleName QualifiedName ::= NameSpacePart "\" {NameSpacePart "\"}* SimpleName NameSpacePart ::= identifier | null | false |…
DocParser::Annotation in core/lib/Drupal/Component/Annotation/Doctrine/DocParser.php
Annotation ::= "@" AnnotationName MethodCall AnnotationName ::= QualifiedName | SimpleName QualifiedName ::= NameSpacePart "\" {NameSpacePart "\"}* SimpleName NameSpacePart ::= identifier | null | false |…
EnumConstraint::check in vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/EnumConstraint.php
invokes the validation of an element
EnvVarProcessor::getEnv in vendor/symfony/dependency-injection/EnvVarProcessor.php
Returns the value of the given variable as managed by the current instance.
Error::updateRepr in vendor/twig/twig/src/Error/Error.php
ExtensionSet::getSignature in vendor/twig/twig/src/ExtensionSet.php
FormatConstraint::check in vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/FormatConstraint.php
invokes the validation of an element
GitBitbucketDriver::getComposerInformation in vendor/composer/composer/src/Composer/Repository/Vcs/GitBitbucketDriver.php
@inheritDoc
GitHubDriver::getComposerInformation in vendor/composer/composer/src/Composer/Repository/Vcs/GitHubDriver.php
@inheritDoc
GitLabDriver::getComposerInformation in vendor/composer/composer/src/Composer/Repository/Vcs/GitLabDriver.php
@inheritDoc
GPBJsonWire::serializeSingularFieldValueToStream in vendor/google/protobuf/src/Google/Protobuf/Internal/GPBJsonWire.php
HtmlDumper::dumpLine in vendor/symfony/var-dumper/Dumper/HtmlDumper.php
Dumps the current line.
HtmlDumper::getDumpHeader in vendor/symfony/var-dumper/Dumper/HtmlDumper.php
Dumps the HTML header.
HtmlDumper::style in vendor/symfony/var-dumper/Dumper/HtmlDumper.php
Decorates a value with some style.
IgnoreAnnotation::__construct in vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation/IgnoreAnnotation.php
@phpstan-param array{value: string|list<string>} $values
InitCommand::execute in vendor/composer/composer/src/Composer/Command/InitCommand.php
InstallationManager::notifyInstalls in vendor/composer/composer/src/Composer/Installer/InstallationManager.php
Json::canonicalize in vendor/phpunit/phpunit/src/Util/Json.php
To allow comparison of JSON strings, first process them into a consistent format so that they can be compared as strings.
Json::encode in core/lib/Drupal/Component/Serialization/Json.php
Uses HTML-safe strings, with several characters escaped.
Json::generateFileReport in vendor/squizlabs/php_codesniffer/src/Reports/Json.php
Generate a partial report for a single processed file.
Json::prettify in vendor/phpunit/phpunit/src/Util/Json.php
JsonDescriptor::writeData in vendor/symfony/console/Descriptor/JsonDescriptor.php
Writes data as json.
JsonEncode::encode in vendor/symfony/serializer/Encoder/JsonEncode.php
Encodes data into the given format.
JsonFile::encode in vendor/composer/composer/src/Composer/Json/JsonFile.php
Encodes an array into (optionally pretty-printed) JSON
JsonResponse::setData in vendor/symfony/http-foundation/JsonResponse.php
Sets the data to be sent as JSON.
LintCommand::displayJson in vendor/symfony/yaml/Command/LintCommand.php
Message::fieldDataOnlyJsonByteSize in vendor/google/protobuf/src/Google/Protobuf/Internal/Message.php
@ignore
Message::jsonByteSize in vendor/google/protobuf/src/Google/Protobuf/Internal/Message.php
@ignore
Message::serializeToJsonStream in vendor/google/protobuf/src/Google/Protobuf/Internal/Message.php
@ignore
PackageGenerator::encode in composer/Generator/PackageGenerator.php
Utility function to encode metapackage json in a consistent way.
PackageRepository::initialize in vendor/composer/composer/src/Composer/Repository/PackageRepository.php
Initializes repository (reads file, or remote address).
ParseException::updateRepr in vendor/symfony/yaml/Exception/ParseException.php
ParserException::formatValue in vendor/phpstan/phpdoc-parser/src/Parser/ParserException.php
Plugin::serviceProvidersFromAutoloadFiles in vendor/tbachert/spi/src/Composer/Plugin.php
ProtobufSerializer::postProcessJsonEnumValues in vendor/open-telemetry/exporter-otlp/ProtobufSerializer.php
Workaround until protobuf exposes `FormatEnumsAsIntegers` option.
RegisterControllerArgumentLocatorsPass::process in vendor/symfony/http-kernel/DependencyInjection/RegisterControllerArgumentLocatorsPass.php
You can modify the container here before it is dumped to PHP code.
RejectionException::__construct in vendor/guzzlehttp/promises/src/RejectionException.php
RepositoryFactory::createRepos in vendor/composer/composer/src/Composer/Repository/RepositoryFactory.php
RepositoryManager::createRepository in vendor/composer/composer/src/Composer/Repository/RepositoryManager.php
Returns a new repository for a specific installation type.
RequestDataCollector::collect in vendor/symfony/http-kernel/DataCollector/RequestDataCollector.php
Collects data for the given Request and Response.
RequestDataCollector::getPrettyJson in vendor/symfony/http-kernel/DataCollector/RequestDataCollector.php
Selenium2Driver::charToOptions in vendor/lullabot/mink-selenium2-driver/src/Selenium2Driver.php
Creates some options for key events
Selenium2Driver::getAttribute in vendor/lullabot/mink-selenium2-driver/src/Selenium2Driver.php
Returns element's attribute by its XPath query.
SessionCookieJar::save in vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php
Save cookies to the client session
SimplePsrFileLogger::formatLog in vendor/open-telemetry/sdk/Logs/SimplePsrFileLogger.php
StreamedJsonResponse::streamArray in vendor/symfony/http-foundation/StreamedJsonResponse.php
SvnDriver::getComposerInformation in vendor/composer/composer/src/Composer/Repository/Vcs/SvnDriver.php
@inheritDoc
TextDescriptor::formatDefaultValue in vendor/symfony/console/Descriptor/TextDescriptor.php
Formats input option/argument default value.
Time::serialize in vendor/ramsey/uuid/src/Type/Time.php
TypedDataManager::getPropertyInstance in core/lib/Drupal/Core/TypedData/TypedDataManager.php
Get a typed data instance for a property of a given typed data object.
Utils::jsonEncode in vendor/guzzlehttp/guzzle/src/Utils.php
Wrapper for JSON encoding that throws when an error occurs.
ValidatingArrayLoader::load in vendor/composer/composer/src/Composer/Package/Loader/ValidatingArrayLoader.php
@inheritDoc
VersionGuesser::guessFeatureVersion in vendor/composer/composer/src/Composer/Package/Version/VersionGuesser.php
ZipDownloader::extractWithSystemUnzip in vendor/composer/composer/src/Composer/Downloader/ZipDownloader.php
extract $file to $path with "unzip" command

API Navigation

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