summaryrefslogtreecommitdiffstats
path: root/core/modules/aggregator/src/FeedForm.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/aggregator/src/FeedForm.php')
-rw-r--r--core/modules/aggregator/src/FeedForm.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/modules/aggregator/src/FeedForm.php b/core/modules/aggregator/src/FeedForm.php
index aed2cd1..7fc2547 100644
--- a/core/modules/aggregator/src/FeedForm.php
+++ b/core/modules/aggregator/src/FeedForm.php
@@ -22,12 +22,12 @@ class FeedForm extends ContentEntityForm {
$label = $feed->label();
$view_link = $feed->link($label, 'canonical');
if ($status == SAVED_UPDATED) {
- drupal_set_message($this->t('The feed %feed has been updated.', ['%feed' => $view_link]));
+ $this->messenger()->addStatus($this->t('The feed %feed has been updated.', ['%feed' => $view_link]));
$form_state->setRedirectUrl($feed->urlInfo('canonical'));
}
else {
$this->logger('aggregator')->notice('Feed %feed added.', ['%feed' => $feed->label(), 'link' => $this->l($this->t('View'), new Url('aggregator.admin_overview'))]);
- drupal_set_message($this->t('The feed %feed has been added.', ['%feed' => $view_link]));
+ $this->messenger()->addStatus($this->t('The feed %feed has been added.', ['%feed' => $view_link]));
}
}