summaryrefslogtreecommitdiffstats
path: root/core/modules/filter/src/FilterFormatAddForm.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/filter/src/FilterFormatAddForm.php')
-rw-r--r--core/modules/filter/src/FilterFormatAddForm.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/filter/src/FilterFormatAddForm.php b/core/modules/filter/src/FilterFormatAddForm.php
index 39f1cb6..07a7d0a 100644
--- a/core/modules/filter/src/FilterFormatAddForm.php
+++ b/core/modules/filter/src/FilterFormatAddForm.php
@@ -23,7 +23,7 @@ class FilterFormatAddForm extends FilterFormatFormBase {
*/
public function submitForm(array &$form, FormStateInterface $form_state) {
parent::submitForm($form, $form_state);
- drupal_set_message($this->t('Added text format %format.', ['%format' => $this->entity->label()]));
+ $this->messenger()->addStatus($this->t('Added text format %format.', ['%format' => $this->entity->label()]));
return $this->entity;
}