summaryrefslogtreecommitdiffstats
path: root/core/modules/image/src/Form/ImageStyleFlushForm.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/image/src/Form/ImageStyleFlushForm.php')
-rw-r--r--core/modules/image/src/Form/ImageStyleFlushForm.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/image/src/Form/ImageStyleFlushForm.php b/core/modules/image/src/Form/ImageStyleFlushForm.php
index df1d24e..f07213f 100644
--- a/core/modules/image/src/Form/ImageStyleFlushForm.php
+++ b/core/modules/image/src/Form/ImageStyleFlushForm.php
@@ -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());
}