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($this->converterDto->getRenderablePathParts(), $propertyPathParts));
42 'hmac' => GeneralUtility::hmac(serialize([$this->converterDto->getFormElementIdentifier(), $key, $value]), $this->sessionToken)
47 $this->converterDto->setFormDefinition($formDefinition);