Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / image / src / Form / ImageStyleAddForm.php
index e0f5654a5d8a2f37e103158331eb94c982fa9588..a1b3d9588ddc0549b3de3e60fc1b658eec0c82c3 100644 (file)
@@ -16,7 +16,7 @@ class ImageStyleAddForm extends ImageStyleFormBase {
    */
   public function submitForm(array &$form, FormStateInterface $form_state) {
     parent::submitForm($form, $form_state);
-    drupal_set_message($this->t('Style %name was created.', ['%name' => $this->entity->label()]));
+    $this->messenger()->addStatus($this->t('Style %name was created.', ['%name' => $this->entity->label()]));
   }
 
   /**