summaryrefslogtreecommitdiffstats
path: root/core/modules/contact/src/MessageForm.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/contact/src/MessageForm.php')
-rw-r--r--core/modules/contact/src/MessageForm.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/contact/src/MessageForm.php b/core/modules/contact/src/MessageForm.php
index c555f3b..3c4030c 100644
--- a/core/modules/contact/src/MessageForm.php
+++ b/core/modules/contact/src/MessageForm.php
@@ -224,7 +224,7 @@ class MessageForm extends ContentEntityForm {
$this->flood->register('contact', $this->config('contact.settings')->get('flood.interval'));
if ($submission_message = $contact_form->getMessage()) {
- drupal_set_message($submission_message);
+ $this->messenger()->addStatus($submission_message);
}
// To avoid false error messages caused by flood control, redirect away from