Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / filter / src / Form / FilterDisableForm.php
index a8a2ba3aad44600b6a819947c8848da27f75e17a..0c213a26666ecbaaceb4b02d23d62b882bc30508 100644 (file)
@@ -46,7 +46,7 @@ class FilterDisableForm extends EntityConfirmFormBase {
    */
   public function submitForm(array &$form, FormStateInterface $form_state) {
     $this->entity->disable()->save();
-    drupal_set_message($this->t('Disabled text format %format.', ['%format' => $this->entity->label()]));
+    $this->messenger()->addStatus($this->t('Disabled text format %format.', ['%format' => $this->entity->label()]));
 
     $form_state->setRedirectUrl($this->getCancelUrl());
   }