Search for langcode

  1. Search 7.x for langcode
  2. Search 9.5.x for langcode
  3. Search 8.9.x for langcode
  4. Search 10.3.x for langcode
  5. Other projects
Title Object type File name Summary
ContentLanguageSettingsUnitTest::testDefaultLangcode function core/modules/language/tests/src/Unit/ContentLanguageSettingsUnitTest.php @covers ::getDefaultLangcode
@covers ::setDefaultLangcode
ContentModerationStateTest::testChangingContentLangcode function core/modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php Tests changing the language of content without adding a translation.
ContentModerationStateTest::testNonLangcodeEntityTypeModeration function core/modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php Tests moderation of a non-translatable entity type with no langcode.
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
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.
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
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
DefaultLanguageRenderer::getLangcodeByRelationship function core/modules/views/src/Entity/Render/DefaultLanguageRenderer.php
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
DistributionProfileTranslationTest::$langcode property core/tests/Drupal/FunctionalTests/Installer/DistributionProfileTranslationTest.php
EntityBaseTest::$langcode property core/tests/Drupal/Tests/Core/Entity/KeyValueStore/KeyValueEntityStorageTest.php
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.
EntityTestHooks::entityTestMulLangcodeKeyTranslationCreate function core/modules/system/tests/modules/entity_test/src/Hook/EntityTestHooks.php Implements hook_ENTITY_TYPE_translation_create() for 'entity_test_mul_langcode_key'.
EntityTestHooks::entityTestMulLangcodeKeyTranslationDelete function core/modules/system/tests/modules/entity_test/src/Hook/EntityTestHooks.php Implements hook_ENTITY_TYPE_translation_delete() for 'entity_test_mul_langcode_key'.
EntityTestHooks::entityTestMulLangcodeKeyTranslationInsert function core/modules/system/tests/modules/entity_test/src/Hook/EntityTestHooks.php Implements hook_ENTITY_TYPE_translation_insert() for 'entity_test_mul_langcode_key'.
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.
EntityUrlTest::$langcode property core/tests/Drupal/Tests/Core/Entity/EntityUrlTest.php The language code of the entity used in this test.
FieldItemBase::getLangcode function core/lib/Drupal/Core/Field/FieldItemBase.php
FieldItemInterface::getLangcode function core/lib/Drupal/Core/Field/FieldItemInterface.php Gets the langcode of the field values held in the object.
FieldItemList::$langcode property core/lib/Drupal/Core/Field/FieldItemList.php The langcode of the field values held in the object.
FieldItemList::getLangcode function core/lib/Drupal/Core/Field/FieldItemList.php
FieldItemList::setLangcode function core/lib/Drupal/Core/Field/FieldItemList.php
FieldItemListInterface::getLangcode function core/lib/Drupal/Core/Field/FieldItemListInterface.php Gets the langcode of the field values held in the object.
FieldItemListInterface::setLangcode function core/lib/Drupal/Core/Field/FieldItemListInterface.php Sets the langcode of the field values held in the object.
FieldTranslationSqlStorageTest::assertFieldStorageLangcode function core/tests/Drupal/KernelTests/Core/Entity/FieldTranslationSqlStorageTest.php Checks whether field languages are correctly stored for the given entity.

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