summaryrefslogtreecommitdiffstats
path: root/core/modules/contact/src/ContactFormEditForm.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/contact/src/ContactFormEditForm.php')
-rw-r--r--core/modules/contact/src/ContactFormEditForm.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/modules/contact/src/ContactFormEditForm.php b/core/modules/contact/src/ContactFormEditForm.php
index 1df6953..7e78f78 100644
--- a/core/modules/contact/src/ContactFormEditForm.php
+++ b/core/modules/contact/src/ContactFormEditForm.php
@@ -167,11 +167,11 @@ class ContactFormEditForm extends EntityForm implements ContainerInjectionInterf
$edit_link = $this->entity->link($this->t('Edit'));
$view_link = $contact_form->link($contact_form->label(), 'canonical');
if ($status == SAVED_UPDATED) {
- drupal_set_message($this->t('Contact form %label has been updated.', ['%label' => $view_link]));
+ $this->messenger()->addStatus($this->t('Contact form %label has been updated.', ['%label' => $view_link]));
$this->logger('contact')->notice('Contact form %label has been updated.', ['%label' => $contact_form->label(), 'link' => $edit_link]);
}
else {
- drupal_set_message($this->t('Contact form %label has been added.', ['%label' => $view_link]));
+ $this->messenger()->addStatus($this->t('Contact form %label has been added.', ['%label' => $view_link]));
$this->logger('contact')->notice('Contact form %label has been added.', ['%label' => $contact_form->label(), 'link' => $edit_link]);
}