Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / filter / src / FilterFormatEditForm.php
index 8173a785c0a4d670839f347c6f426c0192625b20..b8decc138fa1cd980c8642e4467ae64c3308fe6d 100644 (file)
@@ -31,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;
   }