@@ -11,6+11,8 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
/**
* Form for adding workflows.
/**
* Form for adding workflows.
+ *
+ * @internal
*/
class WorkflowAddForm extends EntityForm {
*/
class WorkflowAddForm extends EntityForm {
@@ -84,13+86,13 @@ class WorkflowAddForm extends EntityForm {
$workflow = $this->entity;
$return = $workflow->save();
if (empty($workflow->getTypePlugin()->getStates())) {
$workflow = $this->entity;
$return = $workflow->save();
if (empty($workflow->getTypePlugin()->getStates())) {
- drupal_set_message($this->t('Created the %label Workflow. In order for the workflow to be enabled there needs to be at least one state.', [
+ $this->messenger()->addStatus($this->t('Created the %label Workflow. In order for the workflow to be enabled there needs to be at least one state.', [