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 9ffd8c86c77a969db8737debba31f918ea3c3f47..b8decc138fa1cd980c8642e4467ae64c3308fe6d 100644 (file)
@@ -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;
   }