Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / image / src / Form / ImageStyleFlushForm.php
index df1d24e9ada4095b4023242b764539ff6eb8b28b..f07213fb604972bfe4991f89b3cd22113576ed84 100644 (file)
@@ -45,7 +45,7 @@ class ImageStyleFlushForm extends EntityConfirmFormBase {
    */
   public function submitForm(array &$form, FormStateInterface $form_state) {
     $this->entity->flush();
-    drupal_set_message($this->t('The image style %name has been flushed.', ['%name' => $this->entity->label()]));
+    $this->messenger()->addStatus($this->t('The image style %name has been flushed.', ['%name' => $this->entity->label()]));
     $form_state->setRedirectUrl($this->getCancelUrl());
   }