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
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 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.
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.
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.
EntityBaseTest::$langcode property core/tests/Drupal/Tests/Core/Entity/KeyValueStore/KeyValueEntityStorageTest.php
EntityBaseTest::$langcode property core/tests/Drupal/Tests/Core/Entity/EntityUnitTest.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.
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
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.
entity_test_entity_test_mul_langcode_key_translation_create function core/modules/system/tests/modules/entity_test/entity_test.module Implements hook_ENTITY_TYPE_translation_create() for 'entity_test_mul_langcode_key'.
entity_test_entity_test_mul_langcode_key_translation_delete function core/modules/system/tests/modules/entity_test/entity_test.module Implements hook_ENTITY_TYPE_translation_delete() for 'entity_test_mul_langcode_key'.
entity_test_entity_test_mul_langcode_key_translation_insert function core/modules/system/tests/modules/entity_test/entity_test.module Implements hook_ENTITY_TYPE_translation_insert() for 'entity_test_mul_langcode_key'.
FieldItemBase::getLangcode function core/lib/Drupal/Core/Field/FieldItemBase.php Gets the langcode of the field values held in the object.
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 Gets the langcode of the field values held in the object.
FieldItemList::setLangcode function core/lib/Drupal/Core/Field/FieldItemList.php Sets the langcode of the field values held in the object.
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.