summaryrefslogtreecommitdiffstats
path: root/core/modules/system/tests/modules/session_test/src/Form/SessionTestForm.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/system/tests/modules/session_test/src/Form/SessionTestForm.php')
-rw-r--r--core/modules/system/tests/modules/session_test/src/Form/SessionTestForm.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/system/tests/modules/session_test/src/Form/SessionTestForm.php b/core/modules/system/tests/modules/session_test/src/Form/SessionTestForm.php
index c09237a..57c13a3 100644
--- a/core/modules/system/tests/modules/session_test/src/Form/SessionTestForm.php
+++ b/core/modules/system/tests/modules/session_test/src/Form/SessionTestForm.php
@@ -43,7 +43,7 @@ class SessionTestForm extends FormBase {
* {@inheritdoc}
*/
public function submitForm(array &$form, FormStateInterface $form_state) {
- drupal_set_message(SafeMarkup::format('Ok: @input', ['@input' => $form_state->getValue('input')]));
+ $this->messenger()->addStatus(SafeMarkup::format('Ok: @input', ['@input' => $form_state->getValue('input')]));
}
}