summaryrefslogtreecommitdiffstats
path: root/core/modules/filter/src/Form/FilterDisableForm.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/filter/src/Form/FilterDisableForm.php')
-rw-r--r--core/modules/filter/src/Form/FilterDisableForm.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/filter/src/Form/FilterDisableForm.php b/core/modules/filter/src/Form/FilterDisableForm.php
index a8a2ba3..0c213a2 100644
--- a/core/modules/filter/src/Form/FilterDisableForm.php
+++ b/core/modules/filter/src/Form/FilterDisableForm.php
@@ -46,7 +46,7 @@ class FilterDisableForm extends EntityConfirmFormBase {
*/
public function submitForm(array &$form, FormStateInterface $form_state) {
$this->entity->disable()->save();
- drupal_set_message($this->t('Disabled text format %format.', ['%format' => $this->entity->label()]));
+ $this->messenger()->addStatus($this->t('Disabled text format %format.', ['%format' => $this->entity->label()]));
$form_state->setRedirectUrl($this->getCancelUrl());
}