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