summaryrefslogtreecommitdiffstats
path: root/core/modules/image/src/Form/ImageEffectDeleteForm.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/image/src/Form/ImageEffectDeleteForm.php')
-rw-r--r--core/modules/image/src/Form/ImageEffectDeleteForm.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/image/src/Form/ImageEffectDeleteForm.php b/core/modules/image/src/Form/ImageEffectDeleteForm.php
index e45f7a5..ae167fa 100644
--- a/core/modules/image/src/Form/ImageEffectDeleteForm.php
+++ b/core/modules/image/src/Form/ImageEffectDeleteForm.php
@@ -70,7 +70,7 @@ class ImageEffectDeleteForm extends ConfirmFormBase {
*/
public function submitForm(array &$form, FormStateInterface $form_state) {
$this->imageStyle->deleteImageEffect($this->imageEffect);
- drupal_set_message($this->t('The image effect %name has been deleted.', ['%name' => $this->imageEffect->label()]));
+ $this->messenger()->addStatus($this->t('The image effect %name has been deleted.', ['%name' => $this->imageEffect->label()]));
$form_state->setRedirectUrl($this->imageStyle->urlInfo('edit-form'));
}