Conditions | 4 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
32 | public function createFromRequest(Request $request, bool $normalization, ?array $extractedAttributes = null): array |
||
33 | { |
||
34 | $context = $this->decorated->createFromRequest($request, $normalization, $extractedAttributes); |
||
35 | $resourceClass = $context['resource_class'] ?? null; |
||
36 | |||
37 | if (is_a($resourceClass, PotentialActionInterface::class, true) |
||
38 | && isset($context['groups']) |
||
39 | && true === $normalization |
||
40 | ) { |
||
41 | $context['groups'][] = 'workflowAction:output'; |
||
42 | } |
||
43 | |||
44 | return $context; |
||
45 | } |
||
47 |