summaryrefslogtreecommitdiffstats
path: root/core/modules/system/tests/modules/form_test/src/ConfirmFormTestForm.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/system/tests/modules/form_test/src/ConfirmFormTestForm.php')
-rw-r--r--core/modules/system/tests/modules/form_test/src/ConfirmFormTestForm.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/system/tests/modules/form_test/src/ConfirmFormTestForm.php b/core/modules/system/tests/modules/form_test/src/ConfirmFormTestForm.php
index c5d4cef..089661f 100644
--- a/core/modules/system/tests/modules/form_test/src/ConfirmFormTestForm.php
+++ b/core/modules/system/tests/modules/form_test/src/ConfirmFormTestForm.php
@@ -68,7 +68,7 @@ class ConfirmFormTestForm extends ConfirmFormBase {
* {@inheritdoc}
*/
public function submitForm(array &$form, FormStateInterface $form_state) {
- drupal_set_message($this->t('The ConfirmFormTestForm::submitForm() method was used for this form.'));
+ $this->messenger()->addStatus($this->t('The ConfirmFormTestForm::submitForm() method was used for this form.'));
$form_state->setRedirect('<front>');
}