Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e35a775

Browse files
committed
minor #12942 [workflow] Added a way to not fire the announce event (lyrixx)
This PR was squashed before being merged into the master branch (closes #12942). Discussion ---------- [workflow] Added a way to not fire the announce event fixes #12941 Commits ------- 57ac25d [workflow] Added a way to not fire the announce event
2 parents 1c8e87d + 57ac25d commit e35a775

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

workflow.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,10 @@ order:
334334
* ``workflow.[workflow name].announce``
335335
* ``workflow.[workflow name].announce.[transition name]``
336336

337+
You can avoid those events by using the context::
338+
339+
$workflow->apply($subject, $transitionName, [Workflow::DISABLE_ANNOUNCE_EVENT => true]);
340+
337341
.. note::
338342

339343
The leaving and entering events are triggered even for transitions that stay

0 commit comments

Comments
 (0)