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
ConfigEntityValidationTestBase::testLangcode function core/tests/Drupal/KernelTests/Core/Config/ConfigEntityValidationTestBase.php Tests that the config entity's langcode is validated.
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().
ConfigSchemaTest::testLangcodeRequiredIfTranslatableValuesConstraintError function core/tests/Drupal/KernelTests/Core/Config/ConfigSchemaTest.php @group legacy
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.
ConfigTranslationUiTestBase::$langcodes property core/modules/config_translation/tests/src/Functional/ConfigTranslationUiTestBase.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.
ConfigurableLanguageRenderer::$langcode property core/modules/views/src/Entity/Render/ConfigurableLanguageRenderer.php A specific language code for rendering if available.
ConfigurableLanguageRenderer::getLangcode function core/modules/views/src/Entity/Render/ConfigurableLanguageRenderer.php Returns the language code associated with the given row.
ConstraintViolationBuilder::$code property core/lib/Drupal/Core/Validation/ConstraintViolationBuilder.php The code.
ConstraintViolationBuilder::setCode function core/lib/Drupal/Core/Validation/ConstraintViolationBuilder.php
ContentEntityBase::$activeLangcode property core/lib/Drupal/Core/Entity/ContentEntityBase.php Language code identifying the entity active language.
ContentEntityBase::$defaultLangcode property core/lib/Drupal/Core/Entity/ContentEntityBase.php Local cache for the default language code.
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::getAllValidDefaultLangcodes function core/modules/language/src/Entity/ContentLanguageSettings.php Returns all valid values for the `default_langcode` property.
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 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.

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