summaryrefslogtreecommitdiffstats
path: root/core/modules/media/src/MediaTypeForm.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/media/src/MediaTypeForm.php')
-rw-r--r--core/modules/media/src/MediaTypeForm.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/modules/media/src/MediaTypeForm.php b/core/modules/media/src/MediaTypeForm.php
index 0ba5ee5..4994480 100644
--- a/core/modules/media/src/MediaTypeForm.php
+++ b/core/modules/media/src/MediaTypeForm.php
@@ -369,10 +369,10 @@ class MediaTypeForm extends EntityForm {
$t_args = ['%name' => $media_type->label()];
if ($status === SAVED_UPDATED) {
- drupal_set_message($this->t('The media type %name has been updated.', $t_args));
+ $this->messenger()->addStatus($this->t('The media type %name has been updated.', $t_args));
}
elseif ($status === SAVED_NEW) {
- drupal_set_message($this->t('The media type %name has been added.', $t_args));
+ $this->messenger()->addStatus($this->t('The media type %name has been added.', $t_args));
$this->logger('media')->notice('Added media type %name.', $t_args);
}