summaryrefslogtreecommitdiffstats
path: root/core/modules/system/tests/modules/form_test/src/Form/FormTestGetForm.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/system/tests/modules/form_test/src/Form/FormTestGetForm.php')
-rw-r--r--core/modules/system/tests/modules/form_test/src/Form/FormTestGetForm.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/system/tests/modules/form_test/src/Form/FormTestGetForm.php b/core/modules/system/tests/modules/form_test/src/Form/FormTestGetForm.php
index a032771..bf9ce60 100644
--- a/core/modules/system/tests/modules/form_test/src/Form/FormTestGetForm.php
+++ b/core/modules/system/tests/modules/form_test/src/Form/FormTestGetForm.php
@@ -35,7 +35,7 @@ class FormTestGetForm extends FormBase {
* {@inheritdoc}
*/
public function submitForm(array &$form, FormStateInterface $form_state) {
- drupal_set_message('The form_test_get_form form has been submitted successfully.');
+ $this->messenger()->addStatus('The form_test_get_form form has been submitted successfully.');
}
}