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 10.3.x for code
  5. Search main for code
  6. Other projects
Title Object type File name Summary
ConfigNamesMapper::getLangcode function core/modules/config_translation/src/ConfigNamesMapper.php
ConfigNamesMapper::getLangcodeFromConfig function core/modules/config_translation/src/ConfigNamesMapper.php
ConfigNamesMapper::setLangcode function core/modules/config_translation/src/ConfigNamesMapper.php
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 Tests exception is thrown for the root object.
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
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
ContentLanguageSettings::setDefaultLangcode function core/modules/language/src/Entity/ContentLanguageSettings.php
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 Provides data to testDefaultLangcode().
ContentLanguageSettingsUnitTest::testDefaultLangcode function core/modules/language/tests/src/Unit/ContentLanguageSettingsUnitTest.php Tests default langcode.
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.
CountryCodeConstraint class core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/CountryCodeConstraint.php Validation constraint for country codes.
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.

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