2 declare(strict_types = 1);
39 public function __invoke(
string $key, $value): void
41 $formDefinition = $this->converterDto->getFormDefinition();
43 $renderablePathParts = explode(
'.', $key);
44 array_pop($renderablePathParts);
46 if (count($renderablePathParts) > 1) {
47 $renderablePath = implode(
'.', $renderablePathParts);
50 $currentFormElement = $formDefinition;
53 $propertyCollectionElements = $currentFormElement[
'finishers'] ?? $currentFormElement[
'validators'] ?? [];
54 $propertyCollectionName = $currentFormElement[
'type'] ===
'Form' ?
'finishers' :
'validators';
55 unset($currentFormElement[
'renderables'], $currentFormElement[
'finishers'], $currentFormElement[
'validators']);
58 ->setRenderablePathParts($renderablePathParts)
59 ->setFormElementIdentifier($value);
61 GeneralUtility::makeInstance(ArrayProcessor::class, $currentFormElement)->forEach(
62 GeneralUtility::makeInstance(
63 ArrayProcessing::class,
65 '^(?!(.*\._label|.*\._value)$).*',
66 GeneralUtility::makeInstance(
67 AddHmacDataToFormElementPropertyConverter::class,
74 $this->converterDto->setPropertyCollectionName($propertyCollectionName);
75 foreach ($propertyCollectionElements as $propertyCollectionIndex => $propertyCollectionElement) {
77 ->setPropertyCollectionIndex((
int)$propertyCollectionIndex)
78 ->setPropertyCollectionElementIdentifier($propertyCollectionElement[
'identifier']);
80 GeneralUtility::makeInstance(ArrayProcessor::class, $propertyCollectionElement)->forEach(
81 GeneralUtility::makeInstance(
82 ArrayProcessing::class,
84 '^(?!(.*\._label|.*\._value)$).*',
85 GeneralUtility::makeInstance(
86 AddHmacDataToPropertyCollectionElementConverter::class,