summaryrefslogtreecommitdiffstats
path: root/core/modules/system/tests/modules/form_test/src/Callbacks.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/system/tests/modules/form_test/src/Callbacks.php')
-rw-r--r--core/modules/system/tests/modules/form_test/src/Callbacks.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/system/tests/modules/form_test/src/Callbacks.php b/core/modules/system/tests/modules/form_test/src/Callbacks.php
index 0310a37..4af6f2e 100644
--- a/core/modules/system/tests/modules/form_test/src/Callbacks.php
+++ b/core/modules/system/tests/modules/form_test/src/Callbacks.php
@@ -38,7 +38,7 @@ class Callbacks {
if ($triggered) {
// Output the element's value from $form_state.
- drupal_set_message(t('@label value: @value', ['@label' => $element['#title'], '@value' => $form_state->getValue('name')]));
+ \Drupal::messenger()->addStatus(t('@label value: @value', ['@label' => $element['#title'], '@value' => $form_state->getValue('name')]));
// Trigger a form validation error to see our changes.
$form_state->setErrorByName('');