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