Search for code

  1. Search 7.x for code
  2. Search 8.9.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
AccountForm::alterPreferredLangcodeDescription function core/modules/user/src/AccountForm.php Alters the preferred language widget description.
AccountForm::syncUserLangcode function core/modules/user/src/AccountForm.php Synchronizes preferred language and entity language.
AccountInterface::getPreferredAdminLangcode function core/lib/Drupal/Core/Session/AccountInterface.php Returns the preferred administrative language code of the account.
AccountInterface::getPreferredLangcode function core/lib/Drupal/Core/Session/AccountInterface.php Returns the preferred language code of the account.
AccountProxy::getPreferredAdminLangcode function core/lib/Drupal/Core/Session/AccountProxy.php Returns the preferred administrative language code of the account.
AccountProxy::getPreferredLangcode function core/lib/Drupal/Core/Session/AccountProxy.php Returns the preferred language code of the account.
AliasManager::$langcodePreloaded property core/modules/path_alias/src/AliasManager.php Whether preloaded path lookups has already been loaded.
AliasManagerTest::testGetPathByAliasLangcode function core/modules/path_alias/tests/src/Unit/AliasManagerTest.php Tests the getPathByAlias method when a langcode is passed explicitly.
AreaHTTPStatusCodeTest class core/modules/views/tests/src/Functional/Handler/AreaHTTPStatusCodeTest.php Tests the http_status_code area handler.
AreaHTTPStatusCodeTest.php file core/modules/views/tests/src/Functional/Handler/AreaHTTPStatusCodeTest.php
AreaHTTPStatusCodeTest::$defaultTheme property core/modules/views/tests/src/Functional/Handler/AreaHTTPStatusCodeTest.php The theme to install as the default for testing.
AreaHTTPStatusCodeTest::$modules property core/modules/views/tests/src/Functional/Handler/AreaHTTPStatusCodeTest.php Modules to enable.
AreaHTTPStatusCodeTest::$testViews property core/modules/views/tests/src/Functional/Handler/AreaHTTPStatusCodeTest.php Views used by this test.
AreaHTTPStatusCodeTest::testHTTPStatusCodeHandler function core/modules/views/tests/src/Functional/Handler/AreaHTTPStatusCodeTest.php Tests the area handler.
ArgumentPluginBase::decodeValidatorId function core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php Revert sanitized validator options.
ArgumentPluginBase::encodeValidatorId function core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php Sanitize validator options including derivatives with : for js.
AuthenticationProviderPassTest::testEncoders function core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/AuthenticationProviderPassTest.php @covers ::process[[api-linebreak]]
BlockLanguageCacheTest::$langcodes property core/modules/block/tests/src/Functional/BlockLanguageCacheTest.php List of langcodes.
BookMultilingualTest::LANGCODE constant core/modules/book/tests/src/Kernel/BookMultilingualTest.php The translation langcode.
BookMultilingualTest::langcodesProvider function core/modules/book/tests/src/Kernel/BookMultilingualTest.php Data provider for ::testMultilingualBooks().
BuildTestBase::assertCommandExitCode function core/tests/Drupal/BuildTests/Framework/BuildTestBase.php Asserts that the last command returned the specified exit code.
BuildTestBase::copyCodebase function core/tests/Drupal/BuildTests/Framework/BuildTestBase.php Copy the current working codebase into a workspace.
BuildTestBase::getCodebaseFinder function core/tests/Drupal/BuildTests/Framework/BuildTestBase.php Get a default Finder object for a Drupal codebase.
BuildTestTest::testCopyCodebase function core/tests/Drupal/BuildTests/Framework/Tests/BuildTestTest.php @covers ::copyCodebase[[api-linebreak]]
BuildTestTest::testCopyCodebaseExclude function core/tests/Drupal/BuildTests/Framework/Tests/BuildTestTest.php Ensure we're not copying directories we wish to exclude.
CachedStorage::decode function core/lib/Drupal/Core/Config/CachedStorage.php Decodes configuration data from the storage-specific format.
CachedStorage::encode function core/lib/Drupal/Core/Config/CachedStorage.php Encodes configuration data into the storage-specific format.
CKEditor::getLangcodes function core/modules/ckeditor/src/Plugin/Editor/CKEditor.php Returns a list of language codes supported by CKEditor.
ClassWriter::flushAlteredCodeToFile function core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit8/ClassWriter.php Flushes altered class code to file when necessary.
code-block.admin.css file core/modules/ckeditor5/css/code-block.admin.css .ckeditor5-toolbar-button-codeBlock {
background-image: url(../icons/code-block.svg);
}
commit-code-check.sh file core/scripts/dev/commit-code-check.sh #!/bin/bash
#
# This script performs code quality checks.
#
# @internal
# This script is not covered by Drupal core's backwards compatibility promise.
# It exists only for core development purposes.
#
# The script makes the following…
ComponentGenerator::encode function composer/Generator/ComponentGenerator.php Utility function to encode package json in a consistent way.
Composer::vendorTestCodeCleanup function core/lib/Drupal/Core/Composer/Composer.php Remove possibly problematic test files from vendored projects.
ComposerDeprecationTest::testVendorTestCodeCleanup function core/tests/Drupal/Tests/Core/Composer/ComposerDeprecationTest.php @covers ::vendorTestCodeCleanup[[api-linebreak]]
@group legacy
ConfigEntityBase::$langcode property core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php The language code of the entity's default language.
ConfigMapperInterface::getLangcode function core/modules/config_translation/src/ConfigMapperInterface.php Returns the original language code of the configuration.
ConfigMapperInterface::getLangcodeFromConfig function core/modules/config_translation/src/ConfigMapperInterface.php Returns the language code of a configuration object given its name.
ConfigMapperInterface::setLangcode function core/modules/config_translation/src/ConfigMapperInterface.php Sets the original language code.
ConfigNamesMapper::$langcode property core/modules/config_translation/src/ConfigNamesMapper.php The language code of the language this mapper, if any.
ConfigNamesMapper::getLangcode function core/modules/config_translation/src/ConfigNamesMapper.php Returns the original language code of the configuration.
ConfigNamesMapper::getLangcodeFromConfig function core/modules/config_translation/src/ConfigNamesMapper.php Returns the language code of a configuration object given its name.
ConfigNamesMapper::setLangcode function core/modules/config_translation/src/ConfigNamesMapper.php Sets the original language code.
ConfigNamesMapperTest::testGetLangcode function core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php Tests ConfigNamesMapper::getLangcode().
ConfigTranslationCacheTest::$langcodes property core/modules/config_translation/tests/src/Functional/ConfigTranslationCacheTest.php Languages to enable.
ConfigTranslationInstallTest::$langcode property core/modules/config_translation/tests/src/Functional/ConfigTranslationInstallTest.php The language code in which to install Drupal.
ConfigTranslationOverviewTest::$langcodes property core/modules/config_translation/tests/src/Functional/ConfigTranslationOverviewTest.php Languages to enable.
ConfigTranslationUiTest::$langcodes property core/modules/config_translation/tests/src/Functional/ConfigTranslationUiTest.php Languages to enable.
ConfigTranslationUiThemeTest::$langcodes property core/modules/config_translation/tests/src/Functional/ConfigTranslationUiThemeTest.php Languages to enable.
ConfigurableLanguage::createFromLangcode function core/modules/language/src/Entity/ConfigurableLanguage.php Creates a configurable language object from a langcode.
ConfigurableLanguage::getDefaultLangcode function core/modules/language/src/Entity/ConfigurableLanguage.php Gets the default langcode.

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