Search for code

  1. Search 7.x for code
  2. Search 9.5.x for code
  3. Search 10.3.x for code
  4. Search 11.x for code
  5. Search main for code
  6. Other projects
Title Object type File name Summary
Json::encode function core/lib/Drupal/Component/Serialization/Json.php Uses HTML-safe strings, with several characters escaped.
JsonEncoder class core/modules/serialization/src/Encoder/JsonEncoder.php Adds 'ajax to the supported content types of the JSON encoder'
JsonEncoder class core/modules/hal/src/Encoder/JsonEncoder.php Encodes HAL data in JSON.
JsonEncoder class core/modules/jsonapi/src/Encoder/JsonEncoder.php Encodes JSON:API data.
JsonEncoder.php file core/modules/serialization/src/Encoder/JsonEncoder.php
JsonEncoder.php file core/modules/hal/src/Encoder/JsonEncoder.php
JsonEncoder.php file core/modules/jsonapi/src/Encoder/JsonEncoder.php
JsonEncoder::$format property core/modules/serialization/src/Encoder/JsonEncoder.php The formats that this Encoder supports.
JsonEncoder::$format property core/modules/hal/src/Encoder/JsonEncoder.php The formats that this Encoder supports.
JsonEncoder::$format property core/modules/jsonapi/src/Encoder/JsonEncoder.php The formats that this Encoder supports.
JsonEncoder::getJsonDecode function core/modules/serialization/src/Encoder/JsonEncoder.php Instantiates a JsonDecode instance.
JsonEncoder::getJsonEncode function core/modules/serialization/src/Encoder/JsonEncoder.php Instantiates a JsonEncode instance.
JsonEncoder::supportsDecoding function core/modules/serialization/src/Encoder/JsonEncoder.php
JsonEncoder::supportsEncoding function core/modules/serialization/src/Encoder/JsonEncoder.php
JsonEncoder::__construct function core/modules/serialization/src/Encoder/JsonEncoder.php
JsonEncoderTest class core/modules/serialization/tests/src/Unit/Encoder/JsonEncoderTest.php @coversDefaultClass \Drupal\serialization\Encoder\JsonEncoder[[api-linebreak]]
@group serialization
JsonEncoderTest.php file core/modules/serialization/tests/src/Unit/Encoder/JsonEncoderTest.php
JsonEncoderTest::testSupportsEncoding function core/modules/serialization/tests/src/Unit/Encoder/JsonEncoderTest.php Tests the supportsEncoding() method.
LangcodeToAsciiUpdateFilledTest class core/modules/system/tests/src/Functional/Entity/Update/LangcodeToAsciiUpdateFilledTest.php Runs LangcodeToAsciiUpdateTest with a dump filled with content.
LangcodeToAsciiUpdateFilledTest.php file core/modules/system/tests/src/Functional/Entity/Update/LangcodeToAsciiUpdateFilledTest.php
LangcodeToAsciiUpdateFilledTest::setDatabaseDumpFiles function core/modules/system/tests/src/Functional/Entity/Update/LangcodeToAsciiUpdateFilledTest.php Set database dump files to be used.
LangcodeToAsciiUpdateTest class core/modules/system/tests/src/Functional/Entity/Update/LangcodeToAsciiUpdateTest.php Tests that the entity langcode fields have been updated to varchar_ascii.
LangcodeToAsciiUpdateTest.php file core/modules/system/tests/src/Functional/Entity/Update/LangcodeToAsciiUpdateTest.php
LangcodeToAsciiUpdateTest::getColumnCollation function core/modules/system/tests/src/Functional/Entity/Update/LangcodeToAsciiUpdateTest.php Determine the column collation.
LangcodeToAsciiUpdateTest::setDatabaseDumpFiles function core/modules/system/tests/src/Functional/Entity/Update/LangcodeToAsciiUpdateTest.php Set database dump files to be used.
LangcodeToAsciiUpdateTest::testLangcodeColumnCollation function core/modules/system/tests/src/Functional/Entity/Update/LangcodeToAsciiUpdateTest.php Tests that the column collation has been updated on MySQL.
Language::getDefaultLangcode function core/lib/Drupal/Core/Language/Language.php Gets the default langcode.
LanguageConfigCollectionNameTrait::getLangcodeFromCollectionName function core/modules/language/src/Config/LanguageConfigCollectionNameTrait.php Converts a configuration collection name to a language code.
LanguageConfigOverride::getLangcode function core/modules/language/src/Config/LanguageConfigOverride.php Returns the language code of this language override.
LanguageConfigurationElementTest::testDefaultLangcode function core/modules/language/tests/src/Functional/LanguageConfigurationElementTest.php Tests that the language_get_default_langcode() returns the correct values.
LanguageInterface::LANGCODE_DEFAULT constant core/lib/Drupal/Core/Language/LanguageInterface.php Language code referring to the default language of data, e.g. of an entity.
LanguageInterface::LANGCODE_NOT_APPLICABLE constant core/lib/Drupal/Core/Language/LanguageInterface.php The language code used when the marked object has no linguistic content.
LanguageInterface::LANGCODE_NOT_SPECIFIED constant core/lib/Drupal/Core/Language/LanguageInterface.php The language code used when no language is explicitly assigned (yet).
LanguageInterface::LANGCODE_SITE_DEFAULT constant core/lib/Drupal/Core/Language/LanguageInterface.php Language code referring to site's default language.
LanguageInterface::LANGCODE_SYSTEM constant core/lib/Drupal/Core/Language/LanguageInterface.php Special system language code (only applicable to UI language).
LanguageInterface::VALID_LANGCODE_REGEX constant core/lib/Drupal/Core/Language/LanguageInterface.php A regex for validating language codes according to W3C specifications.
LanguageNegotiationBrowser::getLangcode function core/modules/language/src/Plugin/LanguageNegotiation/LanguageNegotiationBrowser.php Performs language negotiation.
LanguageNegotiationContentEntity::getLangcode function core/modules/language/src/Plugin/LanguageNegotiation/LanguageNegotiationContentEntity.php Performs language negotiation.
LanguageNegotiationMethodInterface::getLangcode function core/modules/language/src/LanguageNegotiationMethodInterface.php Performs language negotiation.
LanguageNegotiationSelected::getLangcode function core/modules/language/src/Plugin/LanguageNegotiation/LanguageNegotiationSelected.php Performs language negotiation.
LanguageNegotiationSession::getLangcode function core/modules/language/src/Plugin/LanguageNegotiation/LanguageNegotiationSession.php Performs language negotiation.
LanguageNegotiationTest::getLangcode function core/modules/language/tests/language_test/src/Plugin/LanguageNegotiation/LanguageNegotiationTest.php Performs language negotiation.
LanguageNegotiationUI::getLangcode function core/modules/language/src/Plugin/LanguageNegotiation/LanguageNegotiationUI.php Performs language negotiation.
LanguageNegotiationUrl::getLangcode function core/modules/language/src/Plugin/LanguageNegotiation/LanguageNegotiationUrl.php Performs language negotiation.
LanguageNegotiationUrlFallback::getLangcode function core/modules/language/src/Plugin/LanguageNegotiation/LanguageNegotiationUrlFallback.php Performs language negotiation.
LanguageNegotiationUser::getLangcode function core/modules/user/src/Plugin/LanguageNegotiation/LanguageNegotiationUser.php Performs language negotiation.
LanguageNegotiationUserAdmin::getLangcode function core/modules/user/src/Plugin/LanguageNegotiation/LanguageNegotiationUserAdmin.php Performs language negotiation.
LanguageUnitTest::testGetLangcode function core/tests/Drupal/Tests/Core/Language/LanguageUnitTest.php @covers ::getId[[api-linebreak]]
language_get_browser_drupal_langcode_mappings function core/modules/language/language.module Returns language mappings between browser and Drupal language codes.
language_get_default_langcode function core/modules/language/language.module Returns the default language code assigned to an entity type and a bundle.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.