summaryrefslogtreecommitdiffstats
path: root/core/modules/workflows/src/Form/WorkflowStateEditForm.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/workflows/src/Form/WorkflowStateEditForm.php')
-rw-r--r--core/modules/workflows/src/Form/WorkflowStateEditForm.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/workflows/src/Form/WorkflowStateEditForm.php b/core/modules/workflows/src/Form/WorkflowStateEditForm.php
index bba3b11..4fe5f5e 100644
--- a/core/modules/workflows/src/Form/WorkflowStateEditForm.php
+++ b/core/modules/workflows/src/Form/WorkflowStateEditForm.php
@@ -201,7 +201,7 @@ class WorkflowStateEditForm extends EntityForm {
}
$workflow->save();
- drupal_set_message($this->t('Saved %label state.', [
+ $this->messenger()->addStatus($this->t('Saved %label state.', [
'%label' => $workflow->getTypePlugin()->getState($this->stateId)->label(),
]));
$form_state->setRedirectUrl($workflow->toUrl('edit-form'));