summaryrefslogtreecommitdiffstats
path: root/core/modules/language/tests/language_test/language_test.module
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/language/tests/language_test/language_test.module')
-rw-r--r--core/modules/language/tests/language_test/language_test.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/language/tests/language_test/language_test.module b/core/modules/language/tests/language_test/language_test.module
index 5ea9c36..575b8e0 100644
--- a/core/modules/language/tests/language_test/language_test.module
+++ b/core/modules/language/tests/language_test/language_test.module
@@ -15,7 +15,7 @@ use Drupal\language\Plugin\LanguageNegotiation\LanguageNegotiationUI;
function language_test_page_top() {
if (\Drupal::moduleHandler()->moduleExists('language')) {
language_test_store_language_negotiation();
- drupal_set_message(t('Language negotiation method: @name', ['@name' => \Drupal::languageManager()->getNegotiatedLanguageMethod()]));
+ \Drupal::messenger()->addStatus(t('Language negotiation method: @name', ['@name' => \Drupal::languageManager()->getNegotiatedLanguageMethod()]));
}
}