summaryrefslogtreecommitdiffstats
path: root/core/modules/content_moderation/src/Form/EntityModerationForm.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/content_moderation/src/Form/EntityModerationForm.php')
-rw-r--r--core/modules/content_moderation/src/Form/EntityModerationForm.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/content_moderation/src/Form/EntityModerationForm.php b/core/modules/content_moderation/src/Form/EntityModerationForm.php
index 98f6fdf..0674b68 100644
--- a/core/modules/content_moderation/src/Form/EntityModerationForm.php
+++ b/core/modules/content_moderation/src/Form/EntityModerationForm.php
@@ -153,7 +153,7 @@ class EntityModerationForm extends FormBase {
}
$entity->save();
- drupal_set_message($this->t('The moderation state has been updated.'));
+ $this->messenger()->addStatus($this->t('The moderation state has been updated.'));
$new_state = $this->moderationInfo->getWorkflowForEntity($entity)->getTypePlugin()->getState($new_state);
// The page we're on likely won't be visible if we just set the entity to