summaryrefslogtreecommitdiffstats
path: root/core/modules/system/tests/modules/ajax_forms_test/src/Form/AjaxFormsTestValidationForm.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/system/tests/modules/ajax_forms_test/src/Form/AjaxFormsTestValidationForm.php')
-rw-r--r--core/modules/system/tests/modules/ajax_forms_test/src/Form/AjaxFormsTestValidationForm.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/system/tests/modules/ajax_forms_test/src/Form/AjaxFormsTestValidationForm.php b/core/modules/system/tests/modules/ajax_forms_test/src/Form/AjaxFormsTestValidationForm.php
index d908e38..ef6ddaf 100644
--- a/core/modules/system/tests/modules/ajax_forms_test/src/Form/AjaxFormsTestValidationForm.php
+++ b/core/modules/system/tests/modules/ajax_forms_test/src/Form/AjaxFormsTestValidationForm.php
@@ -67,7 +67,7 @@ class AjaxFormsTestValidationForm extends FormBase {
* {@inheritdoc}
*/
public function submitForm(array &$form, FormStateInterface $form_state) {
- drupal_set_message($this->t("Validation form submitted"));
+ $this->messenger()->addStatus($this->t("Validation form submitted"));
}
}