summaryrefslogtreecommitdiffstats
path: root/core/modules/comment/src/CommentTypeForm.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/comment/src/CommentTypeForm.php')
-rw-r--r--core/modules/comment/src/CommentTypeForm.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/modules/comment/src/CommentTypeForm.php b/core/modules/comment/src/CommentTypeForm.php
index 0ac5b44..401ce8f 100644
--- a/core/modules/comment/src/CommentTypeForm.php
+++ b/core/modules/comment/src/CommentTypeForm.php
@@ -160,12 +160,12 @@ class CommentTypeForm extends EntityForm {
$edit_link = $this->entity->link($this->t('Edit'));
if ($status == SAVED_UPDATED) {
- drupal_set_message(t('Comment type %label has been updated.', ['%label' => $comment_type->label()]));
+ $this->messenger()->addStatus(t('Comment type %label has been updated.', ['%label' => $comment_type->label()]));
$this->logger->notice('Comment type %label has been updated.', ['%label' => $comment_type->label(), 'link' => $edit_link]);
}
else {
$this->commentManager->addBodyField($comment_type->id());
- drupal_set_message(t('Comment type %label has been added.', ['%label' => $comment_type->label()]));
+ $this->messenger()->addStatus(t('Comment type %label has been added.', ['%label' => $comment_type->label()]));
$this->logger->notice('Comment type %label has been added.', ['%label' => $comment_type->label(), 'link' => $edit_link]);
}