2 declare(strict_types = 1);
32 public function __invoke(
string $_, $value, array $matches)
34 [, $formElementType, $formEditorIndex] = $matches;
37 $this->extractorDto->getPrototypeConfiguration(),
41 'formElementsDefinition',
52 if ($templateName ===
'Inspector-FinishersEditor') {
53 $propertyPath =
'_finishers';
54 } elseif ($templateName ===
'Inspector-ValidatorsEditor') {
55 $propertyPath =
'_validators';
57 if ($templateName ===
'Inspector-RequiredValidatorEditor') {
58 $propertyPath = implode(
61 'formElementsDefinition',
66 'configurationOptions',
67 'validationErrorMessage',
72 $propertyPath = implode(
75 'formElementsDefinition',
86 $this->extractorDto->getPrototypeConfiguration(),
92 $result = $this->extractorDto->getResult();
93 $result[
'formElements'][$formElementType][
'selectOptions'][$propertyPath][] = $value;
94 $this->extractorDto->setResult($result);