Skip to content

[Workflow] Update workflow.rst #18058

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions workflow.rst
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,10 @@ follows:
If you are creating your first workflows, consider using the ``workflow:dump``
command to :doc:`debug the workflow contents </workflow/dumping-workflows>`.

.. tip::

You can use constants in YAML files and add some in the BlogPost entity for places ``draft`` by ``!php/const App\Entity\BlogPost::STATE_DRAFT`` or for transitions ``to_review`` by ``!php/const App\Entity\BlogPost::TRANSITION_TO_REVIEW``.

The configured property will be used via its implemented getter/setter methods by the marking store::

// src/Entity/BlogPost.php
Expand Down