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
LocaleLookup::$langcode property core/modules/locale/src/LocaleLookup.php A language code.
locale_config_batch_set_config_langcodes function core/modules/locale/locale.bulk.inc Implements callback_batch_operation().
locale_config_batch_update_default_config_langcodes function core/modules/locale/locale.bulk.inc Implements callback_batch_operation().
locale_system_set_config_langcodes function core/modules/locale/locale.module Updates default configuration when new modules or themes are installed.
ManagedStorage::decode function core/lib/Drupal/Core/Config/ManagedStorage.php
ManagedStorage::encode function core/lib/Drupal/Core/Config/ManagedStorage.php
MediaEmbedFilterTestBase::createEmbedCode function core/modules/media/tests/src/Kernel/MediaEmbedFilterTestBase.php Gets an embed code with given attributes.
MemoryStorage::decode function core/lib/Drupal/Core/Config/MemoryStorage.php
MemoryStorage::encode function core/lib/Drupal/Core/Config/MemoryStorage.php
NegotiationBrowserDeleteForm::$browserLangcode property core/modules/language/src/Form/NegotiationBrowserDeleteForm.php The browser language code to be deleted.
NegotiationBrowserForm::language_get_browser_drupal_langcode_mappings function core/modules/language/src/Form/NegotiationBrowserForm.php Retrieves the browser's langcode mapping configuration array.
NodeRevisionRevertTranslationForm::$langcode property core/modules/node/src/Form/NodeRevisionRevertTranslationForm.php The language to be reverted.
NodeTypeTranslationTest::$additionalLangcodes property core/modules/node/tests/src/Functional/NodeTypeTranslationTest.php Languages to enable.
NodeTypeTranslationTest::$defaultLangcode property core/modules/node/tests/src/Functional/NodeTypeTranslationTest.php The default language code to use in this test.
NullStorage::decode function core/lib/Drupal/Core/Config/NullStorage.php
NullStorage::encode function core/lib/Drupal/Core/Config/NullStorage.php
OliveroHexToHslTest::hexCodes function core/themes/olivero/tests/src/Unit/OliveroHexToHslTest.php Data provider of hex codes and HSL values.
OpCodeCache class core/lib/Drupal/Component/Utility/OpCodeCache.php Provides helpers to handle PHP opcode caches.
OpCodeCache.php file core/lib/Drupal/Component/Utility/OpCodeCache.php
OpCodeCache::invalidate function core/lib/Drupal/Component/Utility/OpCodeCache.php Invalidates a PHP file from a possibly active opcode cache.
OpCodeCache::isEnabled function core/lib/Drupal/Component/Utility/OpCodeCache.php Checks if OpCodeCache is enabled.
PackageGenerator::encode function composer/Generator/PackageGenerator.php Utility function to encode metapackage json in a consistent way.
PathEncodedTest class core/tests/Drupal/FunctionalTests/Routing/PathEncodedTest.php Tests URL generation and routing for route paths with encoded characters.
PathEncodedTest.php file core/tests/Drupal/FunctionalTests/Routing/PathEncodedTest.php
PathEncodedTest::$defaultTheme property core/tests/Drupal/FunctionalTests/Routing/PathEncodedTest.php
PathEncodedTest::$modules property core/tests/Drupal/FunctionalTests/Routing/PathEncodedTest.php
PathEncodedTest::testAliasToEncoded function core/tests/Drupal/FunctionalTests/Routing/PathEncodedTest.php
PathEncodedTest::testGetEncoded function core/tests/Drupal/FunctionalTests/Routing/PathEncodedTest.php
PathEncodedTestController class core/modules/system/tests/modules/path_encoded_test/src/Controller/PathEncodedTestController.php Returns responses for path_encoded_test routes.
PathEncodedTestController.php file core/modules/system/tests/modules/path_encoded_test/src/Controller/PathEncodedTestController.php
PathEncodedTestController::simple function core/modules/system/tests/modules/path_encoded_test/src/Controller/PathEncodedTestController.php Returns an HTML simple response.
PathProcessorDecode class core/lib/Drupal/Core/PathProcessor/PathProcessorDecode.php Processes the inbound path by decoding the URL.
PathProcessorDecode.php file core/lib/Drupal/Core/PathProcessor/PathProcessorDecode.php
PathProcessorDecode::processInbound function core/lib/Drupal/Core/PathProcessor/PathProcessorDecode.php
path_encoded_test.info.yml file core/modules/system/tests/modules/path_encoded_test/path_encoded_test.info.yml core/modules/system/tests/modules/path_encoded_test/path_encoded_test.info.yml
path_encoded_test.routing.yml file core/modules/system/tests/modules/path_encoded_test/path_encoded_test.routing.yml core/modules/system/tests/modules/path_encoded_test/path_encoded_test.routing.yml
path_processor_decode service core/core.services.yml Drupal\Core\PathProcessor\PathProcessorDecode
PhpassHashedPasswordBase::base64Encode function core/lib/Drupal/Core/Password/PhpassHashedPasswordBase.php Encodes bytes into printable base 64 using the *nix standard from crypt().
PhpSerialize::decode function core/lib/Drupal/Component/Serialization/PhpSerialize.php
PhpSerialize::encode function core/lib/Drupal/Component/Serialization/PhpSerialize.php
PhpTuf\ComposerStager\API\Precondition\Service\NoSymlinksPointOutsideTheCodebaseInterface service core/modules/package_manager/package_manager.services.yml PhpTuf\ComposerStager\Internal\Precondition\Service\NoSymlinksPointOutsideTheCodebase
PoDatabaseReader::$langcode property core/modules/locale/src/PoDatabaseReader.php Language code of the language being read from the database.
PoDatabaseReader::getLangcode function core/modules/locale/src/PoDatabaseReader.php
PoDatabaseReader::setLangcode function core/modules/locale/src/PoDatabaseReader.php
PoDatabaseWriter::$langcode property core/modules/locale/src/PoDatabaseWriter.php Language code of the language being written to the database.
PoDatabaseWriter::getLangcode function core/modules/locale/src/PoDatabaseWriter.php
PoDatabaseWriter::setLangcode function core/modules/locale/src/PoDatabaseWriter.php
PoHeader::$langcode property core/lib/Drupal/Component/Gettext/PoHeader.php Language code.
PoItem::$langcode property core/lib/Drupal/Component/Gettext/PoItem.php The language code this translation is in.
PoItem::getLangcode function core/lib/Drupal/Component/Gettext/PoItem.php Gets the language code of the currently used language.

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