summaryrefslogtreecommitdiffstats
path: root/core/modules/media/src/MediaForm.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/media/src/MediaForm.php')
-rw-r--r--core/modules/media/src/MediaForm.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/modules/media/src/MediaForm.php b/core/modules/media/src/MediaForm.php
index dd6b3fd..6f860e2 100644
--- a/core/modules/media/src/MediaForm.php
+++ b/core/modules/media/src/MediaForm.php
@@ -65,11 +65,11 @@ class MediaForm extends ContentEntityForm {
if ($saved === SAVED_NEW) {
$logger->notice('@type: added %label.', $context);
- drupal_set_message($this->t('@type %label has been created.', $t_args));
+ $this->messenger()->addStatus($this->t('@type %label has been created.', $t_args));
}
else {
$logger->notice('@type: updated %label.', $context);
- drupal_set_message($this->t('@type %label has been updated.', $t_args));
+ $this->messenger()->addStatus($this->t('@type %label has been updated.', $t_args));
}
$form_state->setRedirectUrl($this->entity->toUrl('canonical'));