X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Ffilter%2Fsrc%2FFilterFormatFormBase.php;fp=web%2Fcore%2Fmodules%2Ffilter%2Fsrc%2FFilterFormatFormBase.php;h=5526b02fd4fb98851165f99843dfe99cc48cb95f;hp=cbcb632189b77fbe356ac689f1b3f91b17cea901;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/filter/src/FilterFormatFormBase.php b/web/core/modules/filter/src/FilterFormatFormBase.php index cbcb63218..5526b02fd 100644 --- a/web/core/modules/filter/src/FilterFormatFormBase.php +++ b/web/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); } }