example of workflow + finalize normalization

This commit is contained in:
2022-01-29 00:19:11 +01:00
parent dc184762d6
commit 5ac485e06e
4 changed files with 60 additions and 9 deletions

View File

@@ -47,7 +47,7 @@ class EntityWorkflowNormalizer implements NormalizerInterface, NormalizerAwareIn
'relatedEntityClass' => $object->getRelatedEntityClass(),
'relatedEntityId' => $object->getRelatedEntityId(),
'workflow' => $this->metadataExtractor->buildArrayPresentationForWorkflow($workflow),
'current_step' => $this->metadataExtractor->buildArrayPresentationForPlace($object),
'currentStep' => $this->normalizer->normalize($object->getCurrentStep(), $format, $context),
'steps' => $this->normalizer->normalize($object->getStepsChained(), $format, $context),
];
}