Closed
Description
Description
The workflow metadata store can contain not only strings, but setting nested metadata results in an error when workflow_metadata() is used in Twig.
Example
This example is made up, but I had a case in my project where I expected this working, but got an error. In some issues reported in Symfony I see people using deeper nested metadata (but apparently they do not use the Twig function, yet...)
framework:
workflows:
blog_publishing:
# ...
transitions:
to_review:
from: draft
to: review
metadata:
publish:
label: Publish
icon: paper
I suggest removing the return type at
, or some other change which avoids an error in Twig.