You are here

172 calls to Drupal::languageManager() in Drupal 10

AccountForm::form in core/modules/user/src/AccountForm.php
Gets the actual form array to be built.
AdminPathEntityConverterLanguageTest::testConfigUsingCurrentLanguage in core/modules/language/tests/src/Functional/AdminPathEntityConverterLanguageTest.php
Tests the translated and untranslated config entities are loaded properly.
BlockContentTypeTest::testBlockContentTypeCreation in core/modules/block_content/tests/src/Functional/BlockContentTypeTest.php
Tests creating a block type programmatically and via a form.
BlockStorageUnitTest::createTests in core/modules/block/tests/src/Kernel/BlockStorageUnitTest.php
Tests the creation of blocks.
ckeditor5_js_alter in core/modules/ckeditor5/ckeditor5.module
Implements hook_js_alter().
CommentTokenReplaceTest::testCommentTokenReplacement in core/modules/comment/tests/src/Functional/CommentTokenReplaceTest.php
Creates a comment, then tests the tokens generated from it.
CommentTypeTest::testCommentTypeCreation in core/modules/comment/tests/src/Functional/CommentTypeTest.php
Tests creating a comment type programmatically and via a form.
comment_test_entity_type_alter in core/modules/comment/tests/modules/comment_test/comment_test.module
Implements hook_entity_type_alter().
comment_tokens in core/modules/comment/comment.tokens.inc
Implements hook_tokens().
ConfigEntityTest::testCRUD in core/modules/config/tests/src/Functional/ConfigEntityTest.php
Tests CRUD operations.
ConfigImporterTest::testNew in core/tests/Drupal/KernelTests/Core/Config/ConfigImporterTest.php
Tests creation of configuration during import.
ConfigImportUITest::testImport in core/modules/config/tests/src/Functional/ConfigImportUITest.php
Tests importing configuration.
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.
ConfigLanguageOverrideWebTest::testSiteNameTranslation in core/modules/config/tests/src/Functional/ConfigLanguageOverrideWebTest.php
Tests translating the site name.
ConfigOverridesPriorityTest::testOverridePriorities in core/tests/Drupal/KernelTests/Core/Config/ConfigOverridesPriorityTest.php
ConfigTranslationUiTest::testContactConfigEntityTranslation in core/modules/config_translation/tests/src/Functional/ConfigTranslationUiTest.php
Tests the contact form translation.
ConfigTranslationUiTest::testDateFormatTranslation in core/modules/config_translation/tests/src/Functional/ConfigTranslationUiTest.php
Tests date format translation.
ConfigTranslationUiTest::testSourceValueDuplicateSave in core/modules/config_translation/tests/src/Functional/ConfigTranslationUiTest.php
Tests the site information translation interface.
ConfigurableLanguage::postDelete in core/modules/language/src/Entity/ConfigurableLanguage.php
Acts on deleted entities before the delete hook is invoked.
ConfigurableLanguage::postSave in core/modules/language/src/Entity/ConfigurableLanguage.php
Acts on a saved entity before the insert or update hook is invoked.
ConfigurableLanguage::preSave in core/modules/language/src/Entity/ConfigurableLanguage.php
Acts on an entity before the presave hook is invoked.
ConfigurableLanguageManagerTest::testUserProfileTranslationWithPreferredAdminLanguage in core/modules/language/tests/src/Functional/ConfigurableLanguageManagerTest.php
Tests translation of the user profile edit form.
ContactSitewideTest::testSiteWideContact in core/modules/contact/tests/src/Functional/ContactSitewideTest.php
Tests configuration options and the site-wide contact form.
contact_mail in core/modules/contact/contact.module
Implements hook_mail().
ContentTranslationContextualLinksTest::setUp in core/modules/content_translation/tests/src/Functional/ContentTranslationContextualLinksTest.php
ContentTranslationTestBase::setupLanguages in core/modules/content_translation/tests/src/Functional/ContentTranslationTestBase.php
Adds additional languages.
ContentTranslationUITestBase::doTestOutdatedStatus in core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php
Tests up-to-date status tracking.
content_translation_form_language_content_settings_validate in core/modules/content_translation/content_translation.admin.inc
Form validation handler for content_translation_admin_settings_form().
content_translation_help in core/modules/content_translation/content_translation.module
Implements hook_help().
content_translation_install in core/modules/content_translation/content_translation.install
Implements hook_install().
content_translation_language_configuration_element_validate in core/modules/content_translation/content_translation.module
Form validation handler for element added with content_translation_language_configuration_element_process().
content_translation_translate_access in core/modules/content_translation/content_translation.module
Access callback for the translation overview page.
DisplayFeedTranslationTest::checkFeedResults in core/modules/views/tests/src/Functional/Plugin/DisplayFeedTranslationTest.php
Checks the feed results for the given style of node links.
DisplayTest::testAddDisplayBlockTranslation in core/modules/views_ui/tests/src/FunctionalJavascript/DisplayTest.php
Test if 'add' translations are filtered from multilingual display options.
DrupalDateTime::__construct in core/lib/Drupal/Core/Datetime/DrupalDateTime.php
Constructs a date object.
DrupalTest::testLanguageManager in core/tests/Drupal/Tests/Core/DrupalTest.php
Tests the languageManager() method.
DrupalTranslator::getLocale in core/lib/Drupal/Core/Validation/DrupalTranslator.php
EntityBase::languageManager in core/lib/Drupal/Core/Entity/EntityBase.php
Gets the language manager.
EntityFieldTest::doTestReadWrite in core/tests/Drupal/KernelTests/Core/Entity/EntityFieldTest.php
Executes the read write test set for a defined entity type.
EntityFieldTest::doTestSave in core/tests/Drupal/KernelTests/Core/Entity/EntityFieldTest.php
Executes the save tests for the given entity type.
EntityTranslationTest::doTestEntityLanguageMethods in core/tests/Drupal/KernelTests/Core/Entity/EntityTranslationTest.php
Executes the entity language method tests for the given entity type.
EntityViewBuilderTest::testViewField in core/tests/Drupal/KernelTests/Core/Entity/EntityViewBuilderTest.php
Tests EntityViewBuilder::viewField() language awareness.
FileTokenReplaceTest::testFileTokenReplacement in core/modules/file/tests/src/Functional/FileTokenReplaceTest.php
Creates a file, then tests the tokens generated from it.
file_tokens in core/modules/file/file.module
Implements hook_tokens().
FilterCrudTest::verifyTextFormat in core/modules/filter/tests/src/Kernel/FilterCrudTest.php
Verifies that a text format is properly stored.
filter_formats in core/modules/filter/filter.module
Retrieves a list of enabled text formats, ordered by weight.
FormatterBase::view in core/lib/Drupal/Core/Field/FormatterBase.php
Builds a renderable array for a fully themed field.
ForumTest::doAdminTests in core/modules/forum/tests/src/Functional/ForumTest.php
Runs admin tests on the admin user.
ForumUninstallTest::testForumUninstallWithField in core/modules/forum/tests/src/Functional/ForumUninstallTest.php
Tests if forum module uninstallation properly deletes the field.
HelpTopicSearchTest::testHelpSearch in core/modules/help_topics/tests/src/Functional/HelpTopicSearchTest.php
Tests help topic search.
hook_language_switch_links_alter in core/lib/Drupal/Core/Language/language.api.php
Perform alterations on language switcher links.
hook_search_preprocess in core/modules/search/search.api.php
Preprocess text for search.
hook_theme_suggestions_alter in core/lib/Drupal/Core/Render/theme.api.php
Alters named suggestions for all theme hooks.
hook_tokens in core/lib/Drupal/Core/Utility/token.api.php
Provide replacement values for placeholder tokens.
hook_views_query_substitutions in core/modules/views/views.api.php
Replace special strings in the query before it is executed.
InstallerExistingConfigSyncDirectoryMultilingualTest::testConfigSync in core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryMultilingualTest.php
Confirms that the installation installed the configuration correctly.
InstallerNonEnglishProfileWithoutLocaleModuleTest::testNonEnglishProfileWithoutLocaleModule in core/tests/Drupal/FunctionalTests/Installer/InstallerNonEnglishProfileWithoutLocaleModuleTest.php
Tests installing a profile with non-English language and no locale module.
InstallerTranslationMultipleLanguageNonInteractiveTest::testTranslationsLoaded in core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationMultipleLanguageNonInteractiveTest.php
Tests that translations ended up at the expected places.
InstallerTranslationMultipleLanguageTest::testTranslationsLoaded in core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationMultipleLanguageTest.php
Tests that translations ended up at the expected places.
InstallerTranslationTest::testInstaller in core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationTest.php
Verifies the expected behaviors of the installation result.
InstallHelper::__construct in core/profiles/demo_umami/modules/demo_umami_content/src/InstallHelper.php
Constructs a new InstallHelper object.
install_download_additional_translations_operations in core/includes/install.core.inc
Prepares the system for import and downloads additional translations.
install_finish_translations in core/includes/install.core.inc
Finishes importing files at end of installation.
install_import_translations in core/includes/install.core.inc
Imports languages via a batch process during installation.
install_tasks in core/includes/install.core.inc
Returns a list of all tasks the installer currently knows about.
KeyValueContentEntityStorageTest::testCRUD in core/tests/Drupal/KernelTests/Core/KeyValueStore/KeyValueContentEntityStorageTest.php
Tests CRUD operations.
Language::getValue in core/lib/Drupal/Core/TypedData/Plugin/DataType/Language.php
Overrides TypedData::getValue().
LanguageAddForm::copyFormValuesToEntity in core/modules/language/src/Form/LanguageAddForm.php
Copies top-level form values to entity properties.
LanguageBlock::getDerivativeDefinitions in core/modules/language/src/Plugin/Derivative/LanguageBlock.php
LanguageConditionTest::testConditions in core/modules/language/tests/src/Kernel/Condition/LanguageConditionTest.php
Tests the language condition.
LanguageConfigFactoryOverride::addCollections in core/modules/language/src/Config/LanguageConfigFactoryOverride.php
Reacts to the ConfigEvents::COLLECTION_INFO event.
LanguageConfigFactoryOverride::onConfigDelete in core/modules/language/src/Config/LanguageConfigFactoryOverride.php
Actions to be performed to configuration override on configuration delete.
LanguageConfigFactoryOverride::onConfigRename in core/modules/language/src/Config/LanguageConfigFactoryOverride.php
Actions to be performed to configuration override on configuration rename.
LanguageConfigFactoryOverride::onConfigSave in core/modules/language/src/Config/LanguageConfigFactoryOverride.php
Actions to be performed to configuration override on configuration save.
LanguageConfigOverrideImportTest::testConfigOverrideImport in core/modules/language/tests/src/Functional/LanguageConfigOverrideImportTest.php
Tests that language can be enabled and overrides are created during a sync.
LanguageConfiguration::languageManager in core/modules/language/src/Element/LanguageConfiguration.php
Wraps the language manager.
LanguageConfigurationElementTest::testDefaultLangcode in core/modules/language/tests/src/Functional/LanguageConfigurationElementTest.php
Tests that the language_get_default_langcode() returns the correct values.
LanguageConfigurationTest::checkConfigurableLanguageWeight in core/modules/language/tests/src/Functional/LanguageConfigurationTest.php
Validates system languages are ordered after configurable languages.
LanguageDependencyInjectionTest::testDependencyInjectedNewDefaultLanguage in core/modules/language/tests/src/Kernel/LanguageDependencyInjectionTest.php
Tests dependency injected Language object.
LanguageField::render in core/modules/views/src/Plugin/views/field/LanguageField.php
LanguageItem::applyDefaultValue in core/lib/Drupal/Core/Field/Plugin/Field/FieldType/LanguageItem.php
Applies the default value.
LanguageItem::generateSampleValue in core/lib/Drupal/Core/Field/Plugin/Field/FieldType/LanguageItem.php
Generates placeholder field values.
LanguageItem::getPossibleOptions in core/lib/Drupal/Core/Field/Plugin/Field/FieldType/LanguageItem.php
Returns an array of possible values with labels for display.
LanguageItem::getPossibleValues in core/lib/Drupal/Core/Field/Plugin/Field/FieldType/LanguageItem.php
Returns an array of possible values.
LanguagePathMonolingualTest::setUp in core/modules/language/tests/src/Functional/LanguagePathMonolingualTest.php
LanguageSelectElementTest::testLanguageSelectElementOptions in core/modules/system/tests/src/Functional/Form/LanguageSelectElementTest.php
Tests that the options printed by the language select element are correct.
LanguageSelectorTranslatableTest::testLanguageStringSelector in core/modules/language/tests/src/Functional/LanguageSelectorTranslatableTest.php
Tests content translation language selectors are correctly translated.
LanguageUILanguageNegotiationTest::testUILanguageNegotiation in core/modules/language/tests/src/Functional/LanguageUILanguageNegotiationTest.php
Tests for language switching by URL path.
LanguageUrlRewritingTest::testDomainNameNegotiationPort in core/modules/language/tests/src/Functional/LanguageUrlRewritingTest.php
Check URL rewriting when using a domain name and a non-standard port.
language_get_default_langcode in core/modules/language/language.module
Returns the default language code assigned to an entity type and a bundle.
language_negotiation_url_prefixes_update in core/modules/language/language.module
Update the list of prefixes from the installed languages.
language_process_language_select in core/modules/language/language.module
Processes a language select list form element.
language_test_module_preinstall in core/modules/language/tests/language_test/language_test.module
Implements hook_module_preinstall().
language_test_page_top in core/modules/language/tests/language_test/language_test.module
Implements hook_page_top().
language_test_store_language_negotiation in core/modules/language/tests/language_test/language_test.module
Store the last negotiated languages.
LayoutBuilderTranslationTest::testLayoutOverrideBeforeTranslation in core/modules/layout_builder/tests/src/Functional/LayoutBuilderTranslationTest.php
Tests that layout overrides work when created before a translation.
LayoutBuilderTranslationTest::testTranslationBeforeLayoutOverride in core/modules/layout_builder/tests/src/Functional/LayoutBuilderTranslationTest.php
Tests that layout overrides work when created after a translation.
LocaleConfigSubscriberTest::setUp in core/modules/locale/tests/src/Kernel/LocaleConfigSubscriberTest.php
LocaleConfigTranslationImportTest::testConfigTranslationImport in core/modules/locale/tests/src/Functional/LocaleConfigTranslationImportTest.php
Tests update changes configuration translations if enabled after language.
LocaleConfigTranslationImportTest::testConfigTranslationModuleInstall in core/modules/locale/tests/src/Functional/LocaleConfigTranslationImportTest.php
Tests update changes configuration translations if enabled after language.
LocaleConfigTranslationImportTest::testLocaleRemovalAndConfigOverrideDelete in core/modules/locale/tests/src/Functional/LocaleConfigTranslationImportTest.php
Tests removing a string from Locale deletes configuration translations.
LocaleConfigTranslationImportTest::testLocaleRemovalAndConfigOverridePreserve in core/modules/locale/tests/src/Functional/LocaleConfigTranslationImportTest.php
Tests removing a string from Locale changes configuration translations.
LocaleContentTest::testContentTypeDirLang in core/modules/locale/tests/src/Functional/LocaleContentTest.php
Tests if a dir and lang tags exist in node's attributes.
LocaleContentTest::testContentTypeLanguageConfiguration in core/modules/locale/tests/src/Functional/LocaleContentTest.php
Tests if a content type can be set to multilingual and language is present.
LocaleImportFunctionalTest::testConfigTranslationImportingPoFile in core/modules/locale/tests/src/Functional/LocaleImportFunctionalTest.php
Tests .po file import with user.settings configuration.
LocaleImportFunctionalTest::testCreatedLanguageTranslation in core/modules/locale/tests/src/Functional/LocaleImportFunctionalTest.php
Tests the translation are imported when a new language is created.
LocaleUpdateBase::addLanguage in core/modules/locale/tests/src/Functional/LocaleUpdateBase.php
Adds a language.
locale_config_batch_update_components in core/modules/locale/locale.bulk.inc
Builds a locale batch to refresh configuration.
locale_get_plural in core/modules/locale/locale.module
Returns plural form index for a specific number.
locale_js_translate in core/modules/locale/locale.module
Returns a list of translation files given a list of JavaScript files.
locale_preprocess_node in core/modules/locale/locale.module
Implements hook_preprocess_HOOK() for node templates.
locale_system_set_config_langcodes in core/modules/locale/locale.module
Updates default configuration when new modules or themes are installed.
locale_translatable_language_list in core/modules/locale/locale.module
Returns list of translatable languages.
locale_translate_batch_import_files in core/modules/locale/locale.bulk.inc
Prepare a batch to import all translations.
MachineName::processMachineName in core/lib/Drupal/Core/Render/Element/MachineName.php
Processes a machine-readable name form element.
MailTest::testCancelMessage in core/modules/system/tests/src/Kernel/Mail/MailTest.php
Tests that message sending may be canceled.
MailTest::testConvertRelativeUrlsIntoAbsolute in core/modules/system/tests/src/Kernel/Mail/MailTest.php
Checks that relative paths in mails are converted into absolute URLs.
MailTest::testFromAndReplyToHeader in core/modules/system/tests/src/Kernel/Mail/MailTest.php
Checks the From: and Reply-to: headers.
MailTest::testRenderedElementsUseAbsolutePaths in core/modules/system/tests/src/Kernel/Mail/MailTest.php
Checks that mails built from render arrays contain absolute paths.
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.
ModerationFormTest::testContentTranslationNodeForm in core/modules/content_moderation/tests/src/Functional/ModerationFormTest.php
Tests translated and moderated nodes.
Node::renderLink in core/modules/node/src/Plugin/views/field/Node.php
Prepares link to the node.
NodeAccessLanguageFallbackTest::testNodeAccessLanguageFallback in core/modules/node/tests/src/Functional/NodeAccessLanguageFallbackTest.php
Tests node access fallback handling with multiple node languages.
NodeGrantDatabaseStorage::alterQuery in core/modules/node/src/NodeGrantDatabaseStorage.php
NodeLanguageTest::testNativeLanguageField in core/modules/node/tests/src/Functional/Views/NodeLanguageTest.php
Tests native name display in language field.
NodeListBuilder::buildHeader in core/modules/node/src/NodeListBuilder.php
Builds the header row for the entity listing.
NodeListBuilder::buildRow in core/modules/node/src/NodeListBuilder.php
Builds a row for an entity in the entity listing.
NodeTranslationUITest::testTranslationRendering in core/modules/node/tests/src/Functional/NodeTranslationUITest.php
Tests that translations are rendered properly.
node_tokens in core/modules/node/node.tokens.inc
Implements hook_tokens().
NumericFormatPluralTest::testNumericFormatPlural in core/modules/views/tests/src/Functional/Plugin/NumericFormatPluralTest.php
Tests plural formatting setting on a numeric views handler.
PluginBase::listLanguages in core/modules/views/src/Plugin/views/PluginBase.php
Makes an array of languages, optionally including special languages.
PluginBase::queryLanguageSubstitutions in core/modules/views/src/Plugin/views/PluginBase.php
Returns substitutions for Views queries for languages.
RouteProvider::__construct in core/lib/Drupal/Core/Routing/RouteProvider.php
Constructs a new PathMatcher.
RouteProviderTest::testRouteCaching in core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php
Tests that route caching works.
SqlFieldableEntityTypeListenerTrait::copyData in core/lib/Drupal/Core/Entity/Sql/SqlFieldableEntityTypeListenerTrait.php
Copies entity data from the original storage to the temporary one.
StatisticsTokenReplaceTest::testStatisticsTokenReplacement in core/modules/statistics/tests/src/Functional/StatisticsTokenReplaceTest.php
Creates a node, then tests the statistics tokens generated from it.
system_js_settings_alter in core/modules/system/system.module
Implements hook_js_settings_alter().
system_tokens in core/modules/system/system.tokens.inc
Implements hook_tokens().
template_preprocess_book_export_html in core/modules/book/book.module
Prepares variables for book export templates.
template_preprocess_ckeditor_settings_toolbar in core/modules/ckeditor/ckeditor.admin.inc
Prepares variables for CKEditor settings toolbar templates.
template_preprocess_html in core/includes/theme.inc
Prepares variables for HTML document templates.
template_preprocess_page in core/includes/theme.inc
Prepares variables for the page template.
template_preprocess_search_result in core/modules/search/search.pages.inc
Prepares variables for individual search result templates.
template_preprocess_views_view_rss in core/modules/views/views.theme.inc
Prepares variables for RSS feed templates.
TermTranslationTest::testTranslatedBreadcrumbs in core/modules/taxonomy/tests/src/Functional/TermTranslationTest.php
Tests translated breadcrumbs.
TokenReplaceKernelTestBase::setUp in core/modules/system/tests/src/Kernel/Token/TokenReplaceKernelTestBase.php
TokenReplaceTest::testTaxonomyTokenReplacement in core/modules/taxonomy/tests/src/Functional/TokenReplaceTest.php
Creates some terms and a node, then tests the tokens generated from them.
TranslatedViewTest::testTranslatedStrings in core/modules/views_ui/tests/src/Functional/TranslatedViewTest.php
TwigTransTest::setUp in core/modules/system/tests/src/Functional/Theme/TwigTransTest.php
TwigTransTest::testTwigTransTags in core/modules/system/tests/src/Functional/Theme/TwigTransTest.php
Tests Twig "trans" tags.
UpdatePathTestBaseFilledTest::testUpdatedSite in core/modules/system/tests/src/Functional/UpdateSystem/UpdatePathTestBaseFilledTest.php
Tests that the content and configuration were properly updated.
update_mail in core/modules/update/update.module
Implements hook_mail().
User::getAllowedConfigurableLanguageCodes in core/modules/user/src/Entity/User.php
Defines allowed configurable language codes for AllowedValues constraints.
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.
UserRegistrationTest::testRegistrationDefaultValues in core/modules/user/tests/src/Functional/UserRegistrationTest.php
UserRoleAdminTest::testRoleAdministration in core/modules/user/tests/src/Functional/UserRoleAdminTest.php
Tests adding, renaming and deleting roles.
UserSession::getPreferredAdminLangcode in core/lib/Drupal/Core/Session/UserSession.php
UserSession::getPreferredLangcode in core/lib/Drupal/Core/Session/UserSession.php
UserTokenReplaceTest::testUserTokenReplacement in core/modules/user/tests/src/Functional/UserTokenReplaceTest.php
Creates a user, then tests the tokens generated from it.
user_cancel_url in core/modules/user/user.module
Generates a URL to confirm an account cancellation request.
user_mail in core/modules/user/user.module
Implements hook_mail().
user_pass_reset_url in core/modules/user/user.module
Generates a unique URL for a user to log in and reset their password.
user_tokens in core/modules/user/user.tokens.inc
Implements hook_tokens().
WizardPluginBase::instantiateView in core/modules/views/src/Plugin/views/wizard/WizardPluginBase.php
Instantiates a view object from form values.
_contextual_links_to_id in core/modules/contextual/contextual.module
Serializes #contextual_links property value array to a string.
_install_config_locale_overrides in core/includes/install.core.inc
Creates a batch to process config translations after installing from config.
_install_config_locale_overrides_process_batch in core/includes/install.core.inc
Batch operation callback for install_config_locale_overrides().
_locale_rebuild_js in core/modules/locale/locale.module
(Re-)Creates the JavaScript translation file for a language.
_update_cron_notify in core/modules/update/update.fetch.inc
Performs any notifications that should be done once cron fetches new data.
_user_mail_notify in core/modules/user/user.module
Conditionally create and send a notification email when a certain operation happens on the given user account.