summaryrefslogtreecommitdiffstats
path: root/core/modules/system/tests/modules/form_test/src/Form/FormTestStatePersistForm.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/system/tests/modules/form_test/src/Form/FormTestStatePersistForm.php')
-rw-r--r--core/modules/system/tests/modules/form_test/src/Form/FormTestStatePersistForm.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/system/tests/modules/form_test/src/Form/FormTestStatePersistForm.php b/core/modules/system/tests/modules/form_test/src/Form/FormTestStatePersistForm.php
index af7f51c..5f34bba 100644
--- a/core/modules/system/tests/modules/form_test/src/Form/FormTestStatePersistForm.php
+++ b/core/modules/system/tests/modules/form_test/src/Form/FormTestStatePersistForm.php
@@ -42,7 +42,7 @@ class FormTestStatePersistForm extends FormBase {
* {@inheritdoc}
*/
public function submitForm(array &$form, FormStateInterface $form_state) {
- drupal_set_message($form_state->get('value'));
+ $this->messenger()->addStatus($form_state->get('value'));
$form_state->setRebuild();
}