2 declare(strict_types = 1);
31 public function __invoke(
string $key, $value): void
33 $formDefinition = $this->converterDto->getFormDefinition();
35 $propertyPathParts = explode(
'.', $key);
36 $lastKeySegment = array_pop($propertyPathParts);
37 $propertyPathParts[] =
'_orig_' . $lastKeySegment;
39 $hmacValuePath = implode(
'.', array_merge(
40 $this->converterDto->getRenderablePathParts(),
41 [$this->converterDto->getPropertyCollectionName(), $this->converterDto->getPropertyCollectionIndex()],
47 'hmac' => GeneralUtility::hmac(
49 $this->converterDto->getFormElementIdentifier(),
50 $this->converterDto->getPropertyCollectionName(),
51 $this->converterDto->getPropertyCollectionElementIdentifier(),
61 $this->converterDto->setFormDefinition($formDefinition);