summaryrefslogtreecommitdiffstats
path: root/core/modules/system/tests/modules/form_test/src/FormTestServiceObject.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/system/tests/modules/form_test/src/FormTestServiceObject.php')
-rw-r--r--core/modules/system/tests/modules/form_test/src/FormTestServiceObject.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/modules/system/tests/modules/form_test/src/FormTestServiceObject.php b/core/modules/system/tests/modules/form_test/src/FormTestServiceObject.php
index c1d8555..f4a89bf 100644
--- a/core/modules/system/tests/modules/form_test/src/FormTestServiceObject.php
+++ b/core/modules/system/tests/modules/form_test/src/FormTestServiceObject.php
@@ -50,14 +50,14 @@ class FormTestServiceObject extends ConfigFormBase {
* {@inheritdoc}
*/
public function validateForm(array &$form, FormStateInterface $form_state) {
- drupal_set_message($this->t('The FormTestServiceObject::validateForm() method was used for this form.'));
+ $this->messenger()->addStatus($this->t('The FormTestServiceObject::validateForm() method was used for this form.'));
}
/**
* {@inheritdoc}
*/
public function submitForm(array &$form, FormStateInterface $form_state) {
- drupal_set_message($this->t('The FormTestServiceObject::submitForm() method was used for this form.'));
+ $this->messenger()->addStatus($this->t('The FormTestServiceObject::submitForm() method was used for this form.'));
$this->config('form_test.object', FALSE)
->set('bananas', $form_state->getValue('bananas'))
->save();