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