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