rewrite workflow and handle finalize differently

This commit is contained in:
2022-01-28 23:42:21 +01:00
parent fdafe7c82b
commit 86e7b0f007
11 changed files with 180 additions and 60 deletions

View File

@@ -24,6 +24,10 @@ class WorkflowTwigExtension extends AbstractExtension
[WorkflowTwigExtensionRuntime::class, 'listWorkflows'],
['needs_environment' => true, 'is_safe' => ['html']]
),
new TwigFunction(
'chill_workflow_transition_by_string',
[WorkflowTwigExtensionRuntime::class, 'getTransitionByString']
),
];
}
}