Search for code

  1. Search 7.x for code
  2. Search 9.5.x for code
  3. Search 8.9.x for code
  4. Search 10.3.x for code
  5. Search main for code
  6. Other projects
Title Object type File name Summary
JsonEncoderTest::testEncodeInvalidUtf8IsSubstituted function core/modules/serialization/tests/src/Unit/Encoder/JsonEncoderTest.php Tests that invalid UTF-8 is handled via JSON_INVALID_UTF8_SUBSTITUTE.
JsonEncoderTest::testHtmlUnsafeCharactersAreEscaped function core/modules/serialization/tests/src/Unit/Encoder/JsonEncoderTest.php Tests that HTML-unsafe characters are still escaped.
JsonEncoderTest::testInheritsControlCharacterHandling function core/modules/jsonapi/tests/src/Unit/Encoder/JsonEncoderTest.php Tests JSON:API encoder inherits control character handling.
JsonEncoderTest::testStructuredDataSmokeTest function core/modules/serialization/tests/src/Unit/Encoder/JsonEncoderTest.php Simple structured data smoke test.
JsonEncoderTest::testSupportsEncoding function core/modules/jsonapi/tests/src/Unit/Encoder/JsonEncoderTest.php Tests the supportsEncoding() method.
JsonEncoderTest::testSupportsEncoding function core/modules/serialization/tests/src/Unit/Encoder/JsonEncoderTest.php Tests the supportsEncoding() method.
LangcodeRequiredIfTranslatableValuesConstraint class core/lib/Drupal/Core/Config/Plugin/Validation/Constraint/LangcodeRequiredIfTranslatableValuesConstraint.php Validation constraint for translatable configuration.
LangcodeRequiredIfTranslatableValuesConstraint.php file core/lib/Drupal/Core/Config/Plugin/Validation/Constraint/LangcodeRequiredIfTranslatableValuesConstraint.php
LangcodeRequiredIfTranslatableValuesConstraint::__construct function core/lib/Drupal/Core/Config/Plugin/Validation/Constraint/LangcodeRequiredIfTranslatableValuesConstraint.php #[HasNamedArguments]
LangcodeRequiredIfTranslatableValuesConstraintValidator class core/lib/Drupal/Core/Config/Plugin/Validation/Constraint/LangcodeRequiredIfTranslatableValuesConstraintValidator.php Validates the LangcodeRequiredIfTranslatableValues constraint.
LangcodeRequiredIfTranslatableValuesConstraintValidator.php file core/lib/Drupal/Core/Config/Plugin/Validation/Constraint/LangcodeRequiredIfTranslatableValuesConstraintValidator.php
LangcodeRequiredIfTranslatableValuesConstraintValidator::validate function core/lib/Drupal/Core/Config/Plugin/Validation/Constraint/LangcodeRequiredIfTranslatableValuesConstraintValidator.php
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
LanguageNegotiationContentEntity::getLangcode function core/modules/language/src/Plugin/LanguageNegotiation/LanguageNegotiationContentEntity.php
LanguageNegotiationContentEntityTest::testGetLangcode function core/modules/language/tests/src/Unit/Plugin/LanguageNegotiation/LanguageNegotiationContentEntityTest.php Tests get langcode.
LanguageNegotiationMethodInterface::getLangcode function core/modules/language/src/LanguageNegotiationMethodInterface.php Performs language negotiation.
LanguageNegotiationSelected::getLangcode function core/modules/language/src/Plugin/LanguageNegotiation/LanguageNegotiationSelected.php
LanguageNegotiationSession::getLangcode function core/modules/language/src/Plugin/LanguageNegotiation/LanguageNegotiationSession.php
LanguageNegotiationTest::getLangcode function core/modules/language/tests/language_test/src/Plugin/LanguageNegotiation/LanguageNegotiationTest.php
LanguageNegotiationUI::getLangcode function core/modules/language/src/Plugin/LanguageNegotiation/LanguageNegotiationUI.php
LanguageNegotiationUrl::getLangcode function core/modules/language/src/Plugin/LanguageNegotiation/LanguageNegotiationUrl.php
LanguageNegotiationUrlFallback::getLangcode function core/modules/language/src/Plugin/LanguageNegotiation/LanguageNegotiationUrlFallback.php
LanguageNegotiationUser::getLangcode function core/modules/user/src/Plugin/LanguageNegotiation/LanguageNegotiationUser.php
LanguageNegotiationUserAdmin::getLangcode function core/modules/user/src/Plugin/LanguageNegotiation/LanguageNegotiationUserAdmin.php
LanguageReference::getAllValidLangcodes function core/lib/Drupal/Core/TypedData/Plugin/DataType/LanguageReference.php Returns all valid values for a `langcode` config value.
LanguageTestTrait::createLanguageFromLangcode function core/modules/language/tests/src/Traits/LanguageTestTrait.php Creates a configurable language object from a langcode.
LanguageUnitTest::testGetLangcode function core/tests/Drupal/Tests/Core/Language/LanguageUnitTest.php Tests get langcode.
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.
LayoutRestTestBase::getDecodedContents function core/modules/layout_builder/tests/src/Functional/Rest/LayoutRestTestBase.php Gets the decoded contents.
LinkBase::addLangcode function core/modules/views/src/Plugin/views/field/LinkBase.php Adds language information to the options.
LocaleBulkDeprecationTest::testDeprecatedLocaleConfigBatchSetConfigLangcodes function core/modules/locale/tests/src/Unit/LocaleBulkDeprecationTest.php Tests the deprecation of locale_config_batch_set_config_langcodes().
LocaleConfigManager::getActiveConfigLangcode function core/modules/locale/src/LocaleConfigManager.php Returns the current language code for this active configuration.
LocaleConfigManager::getDefaultConfigLangcode function core/modules/locale/src/LocaleConfigManager.php Returns the original language code for this shipped configuration.
LocaleConfigManager::updateDefaultConfigLangcodes function core/modules/locale/src/LocaleConfigManager.php Updates default configuration when new modules or themes are installed.
LocaleConfigManagerTest::testGetDefaultConfigLangcode function core/modules/locale/tests/src/Kernel/LocaleConfigManagerTest.php Tests getDefaultConfigLangcode().
LocaleConfigTranslationTest::$langcode property core/modules/locale/tests/src/Functional/LocaleConfigTranslationTest.php The language code used.
LocaleEvent::$langCodes property core/modules/locale/src/LocaleEvent.php The list of Language codes for updated translations.
LocaleEvent::getLangCodes function core/modules/locale/src/LocaleEvent.php Returns the language codes.
LocaleImportFunctionalTest::getInvalidEncodedPoFile function core/modules/locale/tests/src/Functional/LocaleImportFunctionalTest.php Helper function that returns a .po file with invalid encoding.

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