summaryrefslogtreecommitdiffstats
path: root/core/modules/aggregator/src/FeedForm.php
diff options
context:
space:
mode:
authorAlex Pott2018-05-01 09:15:07 (GMT)
committerAlex Pott2018-05-01 09:15:07 (GMT)
commitb84b827d42512f5add026b6c930d9087c79a4b7c (patch)
treef75bcf1a9977965dd983eb5f38d0191444575e14 /core/modules/aggregator/src/FeedForm.php
parent52fdfaa5f8d6bf6891a36ae03c2797750331014e (diff)
Issue #2935256 by Jo Fitzgerald, voleger, kim.pepper, ibustos, Yogesh Pawar, catch, jibran: Remove all usages of drupal_get_message and drupal_set_message in modules
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]));
}
}