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 11.x for code
  5. Search main for code
  6. Other projects
Title Object type File name Summary
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.
CountryCodeConstraint class core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/CountryCodeConstraint.php #[Constraint(id: 'CountryCode', label: new TranslatableMarkup('CountryCode', [], [
'context' => 'Validation',
]))]
CountryCodeConstraint.php file core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/CountryCodeConstraint.php
CountryCodeConstraint::create function core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/CountryCodeConstraint.php Creates an instance of the plugin.
CountryCodeConstraintTest class core/tests/Drupal/Tests/Core/Validation/Plugin/Validation/Constraint/CountryCodeConstraintTest.php @covers \Drupal\Core\Validation\Plugin\Validation\Constraint\CountryCodeConstraint[[api-linebreak]]
@group validation
CountryCodeConstraintTest.php file core/tests/Drupal/Tests/Core/Validation/Plugin/Validation/Constraint/CountryCodeConstraintTest.php
CountryCodeConstraintTest::testConstraintLoadsChoicesFromCountryManager function core/tests/Drupal/Tests/Core/Validation/Plugin/Validation/Constraint/CountryCodeConstraintTest.php
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.
DefaultLanguageRenderer::getLangcodeByRelationship function core/modules/views/src/Entity/Render/DefaultLanguageRenderer.php Returns the language code associated with the given row.
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::provideFatalExitCodeData function core/tests/Drupal/Tests/Core/Error/DrupalLogErrorTest.php
DrupalLogErrorTest::testFatalExitCode function core/tests/Drupal/Tests/Core/Error/DrupalLogErrorTest.php Tests that fatal errors return a non-zero exit code.
EntityBaseTest::$langcode property core/tests/Drupal/Tests/Core/Entity/KeyValueStore/KeyValueEntityStorageTest.php
EntityBaseTest::$langcode property core/tests/Drupal/Tests/Core/Entity/EntityUnitTest.php
EntityConstraintViolationList::findByCodes function core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php Filters this violation list by the given error codes.
EntityConstraintViolationListInterface::findByCodes function core/lib/Drupal/Core/Entity/EntityConstraintViolationListInterface.php Filters this violation list by the given error codes.
EntityConstraintViolationListTest::testFindByCodes function core/tests/Drupal/Tests/Core/Entity/EntityConstraintViolationListTest.php @covers ::findByCodes[[api-linebreak]]
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::testUninstallRevisionableEntityTypeWithoutInCodeDefinition function core/tests/Drupal/KernelTests/Core/Entity/EntityDefinitionUpdateTest.php Tests uninstalling a revisionable entity type that doesn't exist in code.
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.
EntityFieldManagerTest::providerTestGetBaseFieldDefinitionsTranslatableEntityTypeDefaultLangcode function core/tests/Drupal/Tests/Core/Entity/EntityFieldManagerTest.php Provides test data for testGetBaseFieldDefinitionsTranslatableEntityTypeDefaultLangcode().
EntityFieldManagerTest::providerTestGetBaseFieldDefinitionsTranslatableEntityTypeLangcode function core/tests/Drupal/Tests/Core/Entity/EntityFieldManagerTest.php Provides test data for testGetBaseFieldDefinitionsTranslatableEntityTypeLangcode().
EntityFieldManagerTest::testGetBaseFieldDefinitionsTranslatableEntityTypeDefaultLangcode function core/tests/Drupal/Tests/Core/Entity/EntityFieldManagerTest.php Tests the getBaseFieldDefinitions() method with a translatable entity type.
EntityFieldManagerTest::testGetBaseFieldDefinitionsTranslatableEntityTypeLangcode function core/tests/Drupal/Tests/Core/Entity/EntityFieldManagerTest.php Tests the getBaseFieldDefinitions() method with a translatable entity type.
EntityLanguageTestBase::$langcodes property core/tests/Drupal/KernelTests/Core/Entity/EntityLanguageTestBase.php The available language codes.
EntityReferenceFieldTranslatedReferenceViewTest::$baseLangcode property core/modules/field/tests/src/Functional/EntityReference/EntityReferenceFieldTranslatedReferenceViewTest.php The langcode of the source language.
EntityReferenceFieldTranslatedReferenceViewTest::$translateToLangcode property core/modules/field/tests/src/Functional/EntityReference/EntityReferenceFieldTranslatedReferenceViewTest.php Target langcode for translation.
EntityStorageBase::$langcodeKey property core/lib/Drupal/Core/Entity/EntityStorageBase.php The name of the entity langcode property.
EntityTestMulLangcodeKey class core/modules/system/tests/modules/entity_test/src/Entity/EntityTestMulLangcodeKey.php Defines a test entity class using a custom langcode entity key.
EntityTestMulLangcodeKey.php file core/modules/system/tests/modules/entity_test/src/Entity/EntityTestMulLangcodeKey.php
EntityTranslationFormTest::$langcodes property core/modules/system/tests/src/Functional/Entity/EntityTranslationFormTest.php The test language codes.
EntityTranslationRendererBase::getLangcode function core/modules/views/src/Entity/Render/EntityTranslationRendererBase.php Returns the language code associated with the given row.
EntityTranslationRendererBase::getLangcodeByRelationship function core/modules/views/src/Entity/Render/EntityTranslationRendererBase.php Returns the language code associated with the given row.
EntityTypeWithoutLanguageFormTest::testEmptyLangcode function core/modules/language/tests/src/Functional/EntityTypeWithoutLanguageFormTest.php Tests configuration options with an entity without language definition.

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