summaryrefslogtreecommitdiffstats
path: root/core/modules/filter/src/FilterFormatFormBase.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/filter/src/FilterFormatFormBase.php')
-rw-r--r--core/modules/filter/src/FilterFormatFormBase.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/filter/src/FilterFormatFormBase.php b/core/modules/filter/src/FilterFormatFormBase.php
index cbcb632..5526b02 100644
--- a/core/modules/filter/src/FilterFormatFormBase.php
+++ b/core/modules/filter/src/FilterFormatFormBase.php
@@ -64,7 +64,7 @@ abstract class FilterFormatFormBase extends EntityForm {
// When a filter is missing, it is replaced by the null filter. Remove it
// here, so that saving the form will remove the missing filter.
if ($filter instanceof FilterNull) {
- drupal_set_message($this->t('The %filter filter is missing, and will be removed once this format is saved.', ['%filter' => $filter_id]), 'warning');
+ $this->messenger()->addWarning($this->t('The %filter filter is missing, and will be removed once this format is saved.', ['%filter' => $filter_id]));
$filters->removeInstanceID($filter_id);
}
}