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