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
ContentEntityBase::$defaultLangcodeKey property core/lib/Drupal/Core/Entity/ContentEntityBase.php The default langcode entity key.
ContentEntityBase::$langcodeKey property core/lib/Drupal/Core/Entity/ContentEntityBase.php The language entity key.
ContentEntityBase::setDefaultLangcode function core/lib/Drupal/Core/Entity/ContentEntityBase.php Populates the local cache for the default language code.
ContentEntityBase::updateFieldLangcodes function core/lib/Drupal/Core/Entity/ContentEntityBase.php Updates language for already instantiated fields.
ContentEntityForm::getFormLangcode function core/lib/Drupal/Core/Entity/ContentEntityForm.php Gets the code identifying the active form language.
ContentEntityForm::initFormLangcodes function core/lib/Drupal/Core/Entity/ContentEntityForm.php Initializes form language code values.
ContentEntityForm::isDefaultFormLangcode function core/lib/Drupal/Core/Entity/ContentEntityForm.php Checks whether the current form language matches the entity one.
ContentEntityForm::updateFormLangcode function core/lib/Drupal/Core/Entity/ContentEntityForm.php Updates the form language to reflect any change to the entity language.
ContentEntityFormInterface::getFormLangcode function core/lib/Drupal/Core/Entity/ContentEntityFormInterface.php Gets the code identifying the active form language.
ContentEntityFormInterface::isDefaultFormLangcode function core/lib/Drupal/Core/Entity/ContentEntityFormInterface.php Checks whether the current form language matches the entity one.
ContentLanguageSettings::$default_langcode property core/modules/language/src/Entity/ContentLanguageSettings.php The default language code.
ContentLanguageSettings::getDefaultLangcode function core/modules/language/src/Entity/ContentLanguageSettings.php Gets the default language code.
ContentLanguageSettings::setDefaultLangcode function core/modules/language/src/Entity/ContentLanguageSettings.php Sets the default language code.
ContentLanguageSettingsInterface::getDefaultLangcode function core/modules/language/src/ContentLanguageSettingsInterface.php Gets the default language code.
ContentLanguageSettingsInterface::setDefaultLangcode function core/modules/language/src/ContentLanguageSettingsInterface.php Sets the default language code.
ContentLanguageSettingsUnitTest::providerDefaultLangcode function core/modules/language/tests/src/Unit/ContentLanguageSettingsUnitTest.php
ContentLanguageSettingsUnitTest::testDefaultLangcode function core/modules/language/tests/src/Unit/ContentLanguageSettingsUnitTest.php @covers ::getDefaultLangcode[[api-linebreak]]
@covers ::setDefaultLangcode[[api-linebreak]]
ContentModerationStateTest::testChangingContentLangcode function core/modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php Test changing the language of content without adding a translation.
ContentModerationStateTest::testNonLangcodeEntityTypeModeration function core/modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php Tests that a non-translatable entity type without a langcode can be
moderated.
ContentTranslationContextualLinksTest::$langcodes property core/modules/content_translation/tests/src/Functional/ContentTranslationContextualLinksTest.php The enabled languages.
ContentTranslationHandler::getSourceLangcode function core/modules/content_translation/src/ContentTranslationHandler.php Retrieves the source language for the translation being created.
ContentTranslationHandlerInterface::getSourceLangcode function core/modules/content_translation/src/ContentTranslationHandlerInterface.php Retrieves the source language for the translation being created.
ContentTranslationHandlerTest::$translationLangcode property core/modules/content_translation/tests/src/Kernel/ContentTranslationHandlerTest.php The ID of the translation language used in this test.
ContentTranslationLinkTagTest::$langcodes property core/modules/content_translation/tests/src/Functional/ContentTranslationLinkTagTest.php The added languages.
ContentTranslationModuleInstallTest::$sourceLangcode property core/modules/content_translation/tests/src/Kernel/ContentTranslationModuleInstallTest.php The language code of the source language for this test.
ContentTranslationModuleInstallTest::$translationLangcode property core/modules/content_translation/tests/src/Kernel/ContentTranslationModuleInstallTest.php The language code of the translation language for this test.
ContentTranslationSyncUnitTest::$langcodes property core/modules/content_translation/tests/src/Kernel/ContentTranslationSyncUnitTest.php The available language codes.
ContentTranslationTestBase::$langcodes property core/modules/content_translation/tests/src/Functional/ContentTranslationTestBase.php The added languages.
ContentTranslationTestBase::$langcodes property core/modules/content_translation/src/Tests/ContentTranslationTestBase.php The added languages.
DatabaseStorage::decode function core/lib/Drupal/Core/Config/DatabaseStorage.php Implements Drupal\Core\Config\StorageInterface::decode().
DatabaseStorage::encode function core/lib/Drupal/Core/Config/DatabaseStorage.php Encodes configuration data into the storage-specific format.
DateFormatterTest::LANGCODE constant core/tests/Drupal/KernelTests/Core/Datetime/DateFormatterTest.php Arbitrary langcode for a custom language.
DateTimePlus::$langcode property core/lib/Drupal/Component/Datetime/DateTimePlus.php The value of the language code passed to the constructor.
DefaultLangcode class core/modules/language/src/Plugin/migrate/destination/DefaultLangcode.php Provides a destination plugin for the default langcode config.
DefaultLangcode.php file core/modules/language/src/Plugin/migrate/destination/DefaultLangcode.php
DefaultLangcode::import function core/modules/language/src/Plugin/migrate/destination/DefaultLangcode.php Import the row.
DefaultLanguageItem::getDefaultLangcode function core/modules/language/src/DefaultLanguageItem.php Provides default language code of given entity.
DefaultLanguageRenderer::getLangcode function core/modules/views/src/Entity/Render/DefaultLanguageRenderer.php Returns the language code associated with the given row.
DeprecatedModerationStateViewsRelationshipTest::testCodeDeprecationModerationStateRelationships function core/modules/content_moderation/tests/src/Functional/DeprecatedModerationStateViewsRelationshipTest.php Test the deprecations are triggered when the deprecated code is executed.
DerivativeDiscoveryDecorator::decodePluginId function core/lib/Drupal/Component/Plugin/Discovery/DerivativeDiscoveryDecorator.php Decodes derivative id and plugin id from a string.
DerivativeDiscoveryDecorator::encodePluginId function core/lib/Drupal/Component/Plugin/Discovery/DerivativeDiscoveryDecorator.php Encodes plugin and derivative id's into a string.
DisplayFeedTranslationTest::$langcodes property core/modules/views/tests/src/Functional/Plugin/DisplayFeedTranslationTest.php The added languages.
DistributionProfileTranslationQueryTest::$langcode property core/tests/Drupal/FunctionalTests/Installer/DistributionProfileTranslationQueryTest.php The language code in which to install Drupal.
DistributionProfileTranslationTest::$langcode property core/tests/Drupal/FunctionalTests/Installer/DistributionProfileTranslationTest.php The language code in which to install Drupal.
DrupalLogErrorTest::testFatalExitCode function core/tests/Drupal/Tests/Core/Error/DrupalLogErrorTest.php Test that fatal errors return a non-zero exit code.
EntityDefaultLanguageTest::testEntityTranslationDefaultLanguageViaCode function core/modules/language/tests/src/Kernel/EntityDefaultLanguageTest.php Tests that default language code is properly set for new nodes.
EntityDefinitionUpdateTest::testInstallFieldableEntityTypeWithoutInCodeDefinition function core/tests/Drupal/KernelTests/Core/Entity/EntityDefinitionUpdateTest.php Tests creating a fieldable entity type that doesn't exist in code anymore.
EntityDefinitionUpdateTest::testUninstallEntityTypeWithoutInCodeDefinition function core/tests/Drupal/KernelTests/Core/Entity/EntityDefinitionUpdateTest.php Tests uninstalling an entity type that doesn't exist in code anymore.
EntityDefinitionUpdateTest::testUpdateEntityTypeWithoutInCodeDefinition function core/tests/Drupal/KernelTests/Core/Entity/EntityDefinitionUpdateTest.php Tests updating an entity type that doesn't exist in code anymore.
EntityDefinitionUpdateTest::testUpdateFieldableEntityTypeWithoutInCodeDefinition function core/tests/Drupal/KernelTests/Core/Entity/EntityDefinitionUpdateTest.php Tests updating a fieldable entity type that doesn't exist in code anymore.

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