X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Ffilter%2Fsrc%2FFilterFormatEditForm.php;h=b8decc138fa1cd980c8642e4467ae64c3308fe6d;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hp=9ffd8c86c77a969db8737debba31f918ea3c3f47;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/modules/filter/src/FilterFormatEditForm.php b/web/core/modules/filter/src/FilterFormatEditForm.php index 9ffd8c86c..b8decc138 100644 --- a/web/core/modules/filter/src/FilterFormatEditForm.php +++ b/web/core/modules/filter/src/FilterFormatEditForm.php @@ -7,6 +7,8 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; /** * Provides a form for adding a filter format. + * + * @internal */ class FilterFormatEditForm extends FilterFormatFormBase { @@ -29,7 +31,7 @@ class FilterFormatEditForm extends FilterFormatFormBase { */ public function submitForm(array &$form, FormStateInterface $form_state) { parent::submitForm($form, $form_state); - drupal_set_message($this->t('The text format %format has been updated.', ['%format' => $this->entity->label()])); + $this->messenger()->addStatus($this->t('The text format %format has been updated.', ['%format' => $this->entity->label()])); return $this->entity; }