summaryrefslogtreecommitdiffstats
path: root/core/modules/comment/src/Controller/CommentController.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/comment/src/Controller/CommentController.php')
-rw-r--r--core/modules/comment/src/Controller/CommentController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/comment/src/Controller/CommentController.php b/core/modules/comment/src/Controller/CommentController.php
index 5602338..526c31c 100644
--- a/core/modules/comment/src/Controller/CommentController.php
+++ b/core/modules/comment/src/Controller/CommentController.php
@@ -85,7 +85,7 @@ class CommentController extends ControllerBase {
$comment->setPublished(TRUE);
$comment->save();
- drupal_set_message($this->t('Comment approved.'));
+ $this->messenger()->addStatus($this->t('Comment approved.'));
$permalink_uri = $comment->permalink();
$permalink_uri->setAbsolute();
return new RedirectResponse($permalink_uri->toString());