Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / filter / src / FilterFormatAddForm.php
index 39f1cb610b58fbdb1f8d836cc0c41194d43809b7..07a7d0a415b9c2ab4c2897f0ff8eb95dfdd59893 100644 (file)
@@ -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;
   }