File tree Expand file tree Collapse file tree 1 file changed +28
-27
lines changed Expand file tree Collapse file tree 1 file changed +28
-27
lines changed Original file line number Diff line number Diff line change @@ -164,6 +164,7 @@ like this:
164
164
]);
165
165
166
166
As configured, the following property is used by the marking store::
167
+ .. code-block :: php
167
168
168
169
class BlogPost
169
170
{
@@ -620,34 +621,34 @@ requires:
620
621
621
622
// config/packages/workflow.php
622
623
623
- $container->loadFromExtension('framework', array(
624
+ $container->loadFromExtension('framework', [
625
+ // ...
626
+ 'workflows' => [
627
+ 'blog_publishing' => [
628
+ 'metadata' => [
629
+ 'title' => 'Blog Publishing Workflow',
630
+ ],
624
631
// ...
625
- 'workflows' => array(
626
- 'blog_publishing' => array(
627
- 'metadata' => array(
628
- 'title' => 'Blog Publishing Workflow',
629
- ),
630
- // ...
631
- 'places' => array(
632
- 'draft' => array(
633
- 'metadata' => array(
634
- 'max_num_of_words' => 500,
635
- ),
636
- ),
637
- // ...
638
- ),
639
- 'transitions' => array(
640
- 'to_review' => array(
641
- 'from' => 'draft',
642
- 'to' => 'review',
643
- 'metadata' => array(
644
- 'priority' => 0.5,
645
- ),
646
- ),
647
- ),
648
- ),
649
- ),
650
- ));
632
+ 'places' => [
633
+ 'draft' => [
634
+ 'metadata' => [
635
+ 'max_num_of_words' => 500,
636
+ ],
637
+ ],
638
+ // ...
639
+ ],
640
+ 'transitions' => [
641
+ 'to_review' => [
642
+ 'from' => 'draft',
643
+ 'to' => 'review',
644
+ 'metadata' => [
645
+ 'priority' => 0.5,
646
+ ],
647
+ ],
648
+ ],
649
+ ],
650
+ ],
651
+ ]);
651
652
652
653
Then you can access this metadata in your controller as follows::
653
654
You can’t perform that action at this time.
0 commit comments