You are here

159 calls to ConfigurableLanguage::createFromLangcode() in Drupal 10

AdminPathEntityConverterLanguageTest::setUp in core/modules/language/tests/src/Functional/AdminPathEntityConverterLanguageTest.php
BasicAuthTest::testLocale in core/modules/basic_auth/tests/src/Functional/BasicAuthTest.php
Tests compatibility with locale/UI translation.
BlockContentFieldFilterTest::setUp in core/modules/block_content/tests/src/Functional/Views/BlockContentFieldFilterTest.php
BlockUiTest::testBlockPlacementIndicator in core/modules/block/tests/src/Functional/BlockUiTest.php
Tests the block placement indicator.
BulkFormTest::setUp in core/modules/node/tests/src/Functional/Views/BulkFormTest.php
CKEditorStylesComboTranslationTest::setUp in core/modules/ckeditor/tests/src/Functional/CKEditorStylesComboTranslationTest.php
CKEditorTest::assertCKEditorLanguage in core/modules/ckeditor/tests/src/Kernel/CKEditorTest.php
Assert that CKEditor picks the expected language when French is default.
CommentAdminTest::testCommentedTranslationDeletion in core/modules/comment/tests/src/Functional/CommentAdminTest.php
Tests commented translation deletion admin view.
CommentAdminViewTest::setUp in core/modules/comment/tests/src/Kernel/Views/CommentAdminViewTest.php
CommentFieldFilterTest::setUp in core/modules/comment/tests/src/Functional/Views/CommentFieldFilterTest.php
ConfigEntityListMultilingualTest::setUp in core/modules/config/tests/src/Functional/ConfigEntityListMultilingualTest.php
ConfigInstallWebTest::testPreExistingConfigInstall in core/modules/config/tests/src/Functional/ConfigInstallWebTest.php
Tests pre-existing configuration detection.
ConfigLanguageOverrideTest::testConfigLanguageOverride in core/tests/Drupal/KernelTests/Core/Config/ConfigLanguageOverrideTest.php
Tests locale override based on language.
ConfigTranslationCacheTest::setUp in core/modules/config_translation/tests/src/Functional/ConfigTranslationCacheTest.php
ConfigTranslationDateFormatUiTest::setUp in core/modules/config_translation/tests/src/Functional/ConfigTranslationDateFormatUiTest.php
ConfigTranslationListUiTest::doLanguageListTest in core/modules/config_translation/tests/src/Functional/ConfigTranslationListUiTest.php
Tests the language listing for the translate operation.
ConfigTranslationOverviewTest::setUp in core/modules/config_translation/tests/src/Functional/ConfigTranslationOverviewTest.php
ConfigTranslationUiTest::setUp in core/modules/config_translation/tests/src/Functional/ConfigTranslationUiTest.php
ConfigTranslationUiThemeTest::setUp in core/modules/config_translation/tests/src/Functional/ConfigTranslationUiThemeTest.php
ConfigTranslationViewListUiTest::testTimestampFormatterTranslation in core/modules/config_translation/tests/src/Functional/ConfigTranslationViewListUiTest.php
Test to ensure that TimestampFormatter translation works.
ConfigurableLanguageManagerTest::setUp in core/modules/language/tests/src/Functional/ConfigurableLanguageManagerTest.php
ContentEntityChangedTest::setUp in core/tests/Drupal/KernelTests/Core/Entity/ContentEntityChangedTest.php
ContentEntityCloneTest::setUp in core/tests/Drupal/KernelTests/Core/Entity/ContentEntityCloneTest.php
ContentEntityFieldMethodInvocationOrderTest::setUp in core/tests/Drupal/KernelTests/Core/Entity/ContentEntityFieldMethodInvocationOrderTest.php
ContentEntityTest::setUp in core/modules/migrate_drupal/tests/src/Kernel/Plugin/migrate/source/ContentEntityTest.php
ContentTranslationContextualLinksTest::setUp in core/modules/content_translation/tests/src/Functional/ContentTranslationContextualLinksTest.php
ContentTranslationContextualLinksTest::setUp in core/modules/content_translation/tests/src/FunctionalJavascript/ContentTranslationContextualLinksTest.php
ContentTranslationEntityBundleInfoTest::setUp in core/modules/content_translation/tests/src/Kernel/ContentTranslationEntityBundleInfoTest.php
ContentTranslationFieldSyncRevisionTest::setUp in core/modules/content_translation/tests/src/Kernel/ContentTranslationFieldSyncRevisionTest.php
ContentTranslationHandlerTest::setUp in core/modules/content_translation/tests/src/Kernel/ContentTranslationHandlerTest.php
ContentTranslationLanguageChangeTest::setUp in core/modules/content_translation/tests/src/Functional/ContentTranslationLanguageChangeTest.php
ContentTranslationLinkTagTest::setUp in core/modules/content_translation/tests/src/Functional/ContentTranslationLinkTagTest.php
ContentTranslationModuleInstallTest::setUp in core/modules/content_translation/tests/src/Kernel/ContentTranslationModuleInstallTest.php
ContentTranslationOperationsTest::setUp in core/modules/content_translation/tests/src/Functional/ContentTranslationOperationsTest.php
ContentTranslationTestBase::setupLanguages in core/modules/content_translation/tests/src/Functional/ContentTranslationTestBase.php
Adds additional languages.
ContextualDynamicContextTest::setUp in core/modules/contextual/tests/src/Functional/ContextualDynamicContextTest.php
ContextualDynamicContextTest::testDifferentPermissions in core/modules/contextual/tests/src/Functional/ContextualDynamicContextTest.php
Tests contextual links with different permissions.
DateFormatterTest::setUp in core/tests/Drupal/KernelTests/Core/Datetime/DateFormatterTest.php
DefaultRevisionStateTest::testMultilingual in core/modules/content_moderation/tests/src/Kernel/DefaultRevisionStateTest.php
Tests a translatable Node.
DisplayFeedTranslationTest::setUp in core/modules/views/tests/src/Functional/Plugin/DisplayFeedTranslationTest.php
DisplayTest::testAddDisplayBlockTranslation in core/modules/views_ui/tests/src/FunctionalJavascript/DisplayTest.php
Test if 'add' translations are filtered from multilingual display options.
DisplayTest::testTranslationSetting in core/modules/views/tests/src/Functional/Plugin/DisplayTest.php
Tests translation rendering settings based on entity translatability.
EntityConverterLatestRevisionTest::setUp in core/tests/Drupal/KernelTests/Core/ParamConverter/EntityConverterLatestRevisionTest.php
EntityDecoupledTranslationRevisionsTest::setUp in core/tests/Drupal/KernelTests/Core/Entity/EntityDecoupledTranslationRevisionsTest.php
EntityDefinitionUpdateTest::testBaseFieldDeleteWithExistingData in core/tests/Drupal/KernelTests/Core/Entity/EntityDefinitionUpdateTest.php
Tests deleting a base field when it has existing data.
EntityFormTest::setUp in core/modules/system/tests/src/Functional/Entity/EntityFormTest.php
EntityNonRevisionableTranslatableFieldTest::setUp in core/tests/Drupal/KernelTests/Core/Entity/EntityNonRevisionableTranslatableFieldTest.php
EntityQueryTest::setUp in core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php
EntityReferenceFieldTranslatedReferenceViewTest::setUpLanguages in core/modules/field/tests/src/Functional/EntityReference/EntityReferenceFieldTranslatedReferenceViewTest.php
Adds additional languages.
EntityRepositoryTest::setUp in core/tests/Drupal/KernelTests/Core/Entity/EntityRepositoryTest.php
EntityRevisionsTest::setUp in core/modules/system/tests/src/Functional/Entity/EntityRevisionsTest.php
EntityRevisionsTest::testIsLatestAffectedRevisionTranslation in core/tests/Drupal/KernelTests/Core/Entity/EntityRevisionsTest.php
Tests that latest affected revisions are working as expected.
EntityRevisionsTest::testTranslatedLoadedRevisionId in core/tests/Drupal/KernelTests/Core/Entity/EntityRevisionsTest.php
Tests the loaded revision ID for translatable entities.
EntityRevisionTest::testRevisionTranslation in core/modules/migrate/tests/src/Kernel/Plugin/EntityRevisionTest.php
Tests that EntityRevision correctly handles revision translations.
EntityRevisionTranslationTest::setUp in core/tests/Drupal/KernelTests/Core/Entity/EntityRevisionTranslationTest.php
EntityStateChangeValidationTest::testExistingMultilingualContentWithNoModeration in core/modules/content_moderation/tests/src/Kernel/EntityStateChangeValidationTest.php
Tests that content without prior moderation information can be translated.
EntityStateChangeValidationTest::testInvalidStateMultilingual in core/modules/content_moderation/tests/src/Kernel/EntityStateChangeValidationTest.php
Tests state transition validation with multiple languages.
FieldableEntityDefinitionUpdateTest::setUp in core/tests/Drupal/KernelTests/Core/Entity/FieldableEntityDefinitionUpdateTest.php
FieldEntityLinkBaseTest::setUp in core/modules/views/tests/src/Functional/Handler/FieldEntityLinkBaseTest.php
FieldEntityOperationsTest::testEntityOperations in core/modules/views/tests/src/Functional/Handler/FieldEntityOperationsTest.php
Tests entity operations field.
FieldWebTest::testClickSortingDistinct in core/modules/views/tests/src/Functional/Handler/FieldWebTest.php
Tests the default click sorting functionality with distinct.
GlossaryViewTest::testGlossaryLanguagePrefix in core/modules/views/tests/src/FunctionalJavascript/GlossaryViewTest.php
Tests that the glossary also works on a language prefixed URL.
ImageStylesPathAndUrlTest::setUp in core/modules/image/tests/src/Functional/ImageStylesPathAndUrlTest.php
ImportForm::submitForm in core/modules/locale/src/Form/ImportForm.php
Form submission handler.
install_download_additional_translations_operations in core/includes/install.core.inc
Prepares the system for import and downloads additional translations.
JsonApiFunctionalMultilingualTest::setUp in core/modules/jsonapi/tests/src/Functional/JsonApiFunctionalMultilingualTest.php
JSTranslationTest::test in core/modules/ckeditor5/tests/src/FunctionalJavascript/JSTranslationTest.php
Integration test to ensure that CKEditor 5 Plugins translations are loaded.
LanguageBreadcrumbTest::setUp in core/modules/language/tests/src/Functional/LanguageBreadcrumbTest.php
LanguageBrowserDetectionAcceptLanguageTest::setUp in core/modules/language/tests/src/Functional/LanguageBrowserDetectionAcceptLanguageTest.php
LanguageConditionTest::setUp in core/modules/language/tests/src/Kernel/Condition/LanguageConditionTest.php
LanguageConfigFactoryOverrideTest::testLanguageConfigFactoryOverride in core/modules/language/tests/src/Kernel/LanguageConfigFactoryOverrideTest.php
Tests language.config_factory_override service has the default language.
LanguageConfigOverrideImportTest::testConfigOverrideImport in core/modules/language/tests/src/Functional/LanguageConfigOverrideImportTest.php
Tests that language can be enabled and overrides are created during a sync.
LanguageConfigOverrideImportTest::testConfigOverrideImportEvents in core/modules/language/tests/src/Functional/LanguageConfigOverrideImportTest.php
Tests that configuration events are not fired during a sync of overrides.
LanguageConfigOverrideInstallTest::testLanguageConfigOverrideInstall in core/modules/language/tests/src/Kernel/LanguageConfigOverrideInstallTest.php
Tests the configuration events are not fired during install of overrides.
LanguageConfigurationTest::testLanguageConfiguration in core/modules/language/tests/src/Functional/LanguageConfigurationTest.php
Functional tests for adding, editing and deleting languages.
LanguageDependencyInjectionTest::testDependencyInjectedNewDefaultLanguage in core/modules/language/tests/src/Kernel/LanguageDependencyInjectionTest.php
Tests dependency injected Language object.
LanguageFallbackTest::setUp in core/modules/language/tests/src/Kernel/LanguageFallbackTest.php
LanguageNegotiationSessionTest::setUp in core/modules/language/tests/src/Functional/LanguageNegotiationSessionTest.php
LanguageSwitchingTest::testLanguageBlockWithDomain in core/modules/language/tests/src/Functional/LanguageSwitchingTest.php
Tests language switcher links for domain based negotiation.
LanguageTest::test in core/modules/ckeditor5/tests/src/FunctionalJavascript/LanguageTest.php
Integration test to ensure that CKEditor 5 UI translations are loaded.
LanguageTest::test in core/modules/ckeditor5/tests/src/Kernel/LanguageTest.php
Ensure that languages are resolved correctly.
LanguageUILanguageNegotiationTest::testLanguageDomain in core/modules/language/tests/src/Functional/LanguageUILanguageNegotiationTest.php
Tests URL handling when separate domains are used for multiple languages.
LanguageUILanguageNegotiationTest::testUILanguageNegotiation in core/modules/language/tests/src/Functional/LanguageUILanguageNegotiationTest.php
Tests for language switching by URL path.
LanguageUILanguageNegotiationTest::testUrlLanguageFallback in core/modules/language/tests/src/Functional/LanguageUILanguageNegotiationTest.php
Tests URL language detection when the requested URL has no language.
LatestTranslationAffectedRevisionTest::testLatestRevisionFilter in core/modules/views/tests/src/Kernel/Entity/LatestTranslationAffectedRevisionTest.php
Tests the 'Latest revision' filter.
LocaleConfigManagerTest::testGetDefaultConfigLangcode in core/modules/locale/tests/src/Kernel/LocaleConfigManagerTest.php
Tests getDefaultConfigLangcode().
LocaleConfigManagerTest::testGetStringTranslation in core/modules/locale/tests/src/Kernel/LocaleConfigManagerTest.php
Tests getStringTranslation().
LocaleConfigManagerTest::testHasTranslation in core/modules/locale/tests/src/Kernel/LocaleConfigManagerTest.php
Tests hasTranslation().
LocaleConfigSubscriberForeignTest::setUpLanguages in core/modules/locale/tests/src/Kernel/LocaleConfigSubscriberForeignTest.php
LocaleConfigSubscriberForeignTest::testEnglish in core/modules/locale/tests/src/Kernel/LocaleConfigSubscriberForeignTest.php
Tests that adding English creates a translation override.
LocaleConfigSubscriberTest::setUpLanguages in core/modules/locale/tests/src/Kernel/LocaleConfigSubscriberTest.php
Sets up languages needed for this test.
LocaleConfigTranslationImportTest::testConfigTranslationImport in core/modules/locale/tests/src/Functional/LocaleConfigTranslationImportTest.php
Tests update changes configuration translations if enabled after language.
LocaleLocaleLookupTest::setUp in core/modules/locale/tests/src/Functional/LocaleLocaleLookupTest.php
LocaleStringTest::setUp in core/modules/locale/tests/src/Kernel/LocaleStringTest.php
LocaleTranslatedSchemaDefinitionTest::setUp in core/modules/locale/tests/src/Functional/LocaleTranslatedSchemaDefinitionTest.php
LocaleTranslationDownloadTest::setUp in core/modules/locale/tests/src/Functional/LocaleTranslationDownloadTest.php
LocaleTranslationUiTest::testUICustomizedStrings in core/modules/locale/tests/src/Functional/LocaleTranslationUiTest.php
Tests that only changed strings are saved customized when edited.
MediaEmbedFilterTranslationTest::setUp in core/modules/media/tests/src/Kernel/MediaEmbedFilterTranslationTest.php
MenuUiNodeTest::testMultilingualMenuNodeFormWidget in core/modules/menu_ui/tests/src/Functional/MenuUiNodeTest.php
Testing correct loading and saving of menu links via node form widget in a multilingual environment.
MigrateEntityContentBaseTest::setUp in core/modules/migrate/tests/src/Kernel/MigrateEntityContentBaseTest.php
MigrateExternalTranslatedTest::setUp in core/modules/migrate/tests/src/Kernel/MigrateExternalTranslatedTest.php
MigrateLanguageContentMenuSettingsTest::setUp in core/modules/language/tests/src/Kernel/Migrate/d6/MigrateLanguageContentMenuSettingsTest.php
ModeratedContentViewTest::testModeratedContentPageMultilingual in core/modules/content_moderation/tests/src/Functional/ModeratedContentViewTest.php
Tests the moderated content page with multilingual content.
ModerationInformationTest::setUp in core/modules/content_moderation/tests/src/Kernel/ModerationInformationTest.php
ModerationStateFieldItemListTest::setUp in core/modules/content_moderation/tests/src/Kernel/ModerationStateFieldItemListTest.php
NodeAccessLanguageAwareCombinationTest::setUp in core/modules/node/tests/src/Kernel/NodeAccessLanguageAwareCombinationTest.php
NodeAccessLanguageAwareTest::setUp in core/modules/node/tests/src/Kernel/NodeAccessLanguageAwareTest.php
NodeAccessLanguageFallbackTest::setUp in core/modules/node/tests/src/Functional/NodeAccessLanguageFallbackTest.php
NodeAccessLanguageTest::setUp in core/modules/node/tests/src/Kernel/NodeAccessLanguageTest.php
NodeFieldFilterTest::setUp in core/modules/node/tests/src/Functional/Views/NodeFieldFilterTest.php
NodeFieldMultilingualTest::setUp in core/modules/node/tests/src/Functional/NodeFieldMultilingualTest.php
NodeLanguageTest::setUp in core/modules/node/tests/src/Functional/Views/NodeLanguageTest.php
NodeOwnerTest::setUp in core/modules/node/tests/src/Kernel/NodeOwnerTest.php
NodeRevisionsTest::setUp in core/modules/node/tests/src/Functional/NodeRevisionsTest.php
NodeTypeTranslationTest::setUp in core/modules/node/tests/src/Functional/NodeTypeTranslationTest.php
NodeViewLanguageTest::testViewLanguage in core/modules/node/tests/src/Functional/NodeViewLanguageTest.php
Tests the language extra field display.
OverridesSectionStorageTest::testAccess in core/modules/layout_builder/tests/src/Kernel/OverridesSectionStorageTest.php
@covers ::access @dataProvider providerTestAccess
PagerTest::testPagerConfigTranslation in core/modules/views/tests/src/Functional/Plugin/PagerTest.php
Tests translating the pager using config_translation.
PagerTest::testPagerLocale in core/modules/views/tests/src/Functional/Plugin/PagerTest.php
Tests translating the pager using locale.
PathContentModerationTest::setUp in core/modules/path/tests/src/Functional/PathContentModerationTest.php
PathItemTest::setUp in core/modules/path/tests/src/Kernel/PathItemTest.php
PathWorkspacesTest::setUp in core/modules/workspaces/tests/src/Functional/PathWorkspacesTest.php
QueryGroupByTest::setUp in core/modules/views/tests/src/Kernel/QueryGroupByTest.php
RevisionRelationshipsTest::setUp in core/modules/node/tests/src/Kernel/Views/RevisionRelationshipsTest.php
RouteCachingLanguageTest::setUp in core/tests/Drupal/FunctionalTests/Routing/RouteCachingLanguageTest.php
RouteCachingNonPathLanguageNegotiationTest::setUp in core/tests/Drupal/FunctionalTests/Routing/RouteCachingNonPathLanguageNegotiationTest.php
RouteProviderTest::testRouteCaching in core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php
Tests that route caching works.
SearchDateIntervalTest::setUp in core/modules/search/tests/src/Functional/SearchDateIntervalTest.php
SearchLanguageTest::setUp in core/modules/search/tests/src/Functional/SearchLanguageTest.php
SearchMultilingualEntityTest::setUp in core/modules/search/tests/src/Functional/SearchMultilingualEntityTest.php
SearchMultilingualTest::testMultilingualSearchFilter in core/modules/views/tests/src/Functional/SearchMultilingualTest.php
Tests search with multilingual nodes.
SeparatorTranslationTest::testSeparatorTranslation in core/modules/datetime_range/tests/src/Kernel/SeparatorTranslationTest.php
Tests the translation of the range separator.
SortTranslationTest::setUp in core/modules/views/tests/src/Kernel/Handler/SortTranslationTest.php
StorageTest::testDetails in core/modules/views_ui/tests/src/Functional/StorageTest.php
Tests changing label, description and tag.
StyleSerializerTest::testMulEntityRows in core/modules/rest/tests/src/Functional/Views/StyleSerializerTest.php
Tests multilingual entity rows.
TaxonomyFieldFilterTest::setUp in core/modules/taxonomy/tests/src/Functional/Views/TaxonomyFieldFilterTest.php
TaxonomyTermViewTest::testTaxonomyTermView in core/modules/taxonomy/tests/src/Functional/Views/TaxonomyTermViewTest.php
Tests that the taxonomy term view is working properly.
TaxonomyTranslationTestTrait::setupLanguages in core/modules/taxonomy/tests/src/Functional/TaxonomyTranslationTestTrait.php
Adds additional languages.
ToolbarAdminMenuTest::testLanguageSwitching in core/modules/toolbar/tests/src/Functional/ToolbarAdminMenuTest.php
Tests that subtrees hashes vary by the language of the page.
TourTest::testTourFunctionality in core/modules/tour/tests/src/Functional/TourTest.php
Tests tour functionality.
TranslatableFieldTest::setUp in core/modules/layout_builder/tests/src/Kernel/TranslatableFieldTest.php
TranslatedViewTest::setUp in core/modules/views_ui/tests/src/Functional/TranslatedViewTest.php
TranslationsTest::setUp in core/modules/media_library/tests/src/FunctionalJavascript/TranslationsTest.php
TranslationStringTest::setUp in core/tests/Drupal/KernelTests/Core/StringTranslation/TranslationStringTest.php
UpcastingTest::testEntityLanguage in core/modules/system/tests/src/Functional/ParamConverter/UpcastingTest.php
Confirms entity is shown in user's language by default.
UserCancelTest::testUserAnonymizeTranslations in core/modules/user/tests/src/Functional/UserCancelTest.php
Delete account and anonymize all content and it's translations.
UserLanguageCreationTest::testLocalUserCreation in core/modules/user/tests/src/Functional/UserLanguageCreationTest.php
Functional test for language handling during user creation.
UserMailNotifyTest::testUserRecoveryMailLanguage in core/modules/user/tests/src/Kernel/UserMailNotifyTest.php
Tests recovery email content and token langcode is aligned.
UserPasswordResetTest::testUserPasswordResetPreferredLanguage in core/modules/user/tests/src/Functional/UserPasswordResetTest.php
Tests password reset functionality when user has set preferred language.
UserTokenReplaceTest::setUp in core/modules/user/tests/src/Functional/UserTokenReplaceTest.php
ViewEditTest::testEditFormLanguageOptions in core/modules/views_ui/tests/src/Functional/ViewEditTest.php
Tests the language options on the views edit form.
ViewNonTranslatableEntityTest::testViewNoTranslatableEntity in core/modules/views/tests/src/Functional/Entity/ViewNonTranslatableEntityTest.php
Tests displaying a view of non-translatable entities.
ViewsModerationStateFilterTest::setUp in core/modules/content_moderation/tests/src/Kernel/ViewsModerationStateFilterTest.php
ViewsModerationStateSortTest::setUp in core/modules/content_moderation/tests/src/Kernel/ViewsModerationStateSortTest.php
ViewsUITourTest::testViewsUiTourTipsTranslated in core/modules/views_ui/tests/src/Functional/ViewsUITourTest.php
Tests views_ui tour tip availability in a different language.
ViewTranslationTest::setUp in core/modules/views/tests/src/Functional/ViewTranslationTest.php
VocabularyTranslationTest::setUp in core/modules/taxonomy/tests/src/Functional/VocabularyTranslationTest.php
WizardPluginBaseKernelTest::testCreateView in core/modules/views/tests/src/Kernel/Wizard/WizardPluginBaseKernelTest.php
Tests the creating of a view.
WorkspaceIntegrationTest::setUp in core/modules/workspaces/tests/src/Kernel/WorkspaceIntegrationTest.php