summaryrefslogtreecommitdiffstats
path: root/core/modules/image/src/Form/ImageStyleEditForm.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/image/src/Form/ImageStyleEditForm.php')
-rw-r--r--core/modules/image/src/Form/ImageStyleEditForm.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/modules/image/src/Form/ImageStyleEditForm.php b/core/modules/image/src/Form/ImageStyleEditForm.php
index e7cfd50..6bf8dd9 100644
--- a/core/modules/image/src/Form/ImageStyleEditForm.php
+++ b/core/modules/image/src/Form/ImageStyleEditForm.php
@@ -231,7 +231,7 @@ class ImageStyleEditForm extends ImageStyleFormBase {
$effect_id = $this->entity->addImageEffect($effect);
$this->entity->save();
if (!empty($effect_id)) {
- drupal_set_message($this->t('The image effect was successfully applied.'));
+ $this->messenger()->addStatus($this->t('The image effect was successfully applied.'));
}
}
}
@@ -254,7 +254,7 @@ class ImageStyleEditForm extends ImageStyleFormBase {
*/
public function save(array $form, FormStateInterface $form_state) {
parent::save($form, $form_state);
- drupal_set_message($this->t('Changes to the style have been saved.'));
+ $this->messenger()->addStatus($this->t('Changes to the style have been saved.'));
}
/**