2 declare(strict_types = 1);
32 public function __invoke(
string $_, $value, array $matches)
34 [, $formElementType, $propertyCollectionName, $propertyCollectionIndex, $propertyCollectionEditorIndex] = $matches;
37 $value !==
'Inspector-PropertyGridEditor'
38 && $value !==
'Inspector-MultiSelectEditor'
39 && $value !==
'Inspector-ValidationErrorMessageEditor'
44 $propertyPath = implode(
47 'formElementsDefinition',
50 'propertyCollections',
51 $propertyCollectionName,
52 $propertyCollectionIndex,
54 $propertyCollectionEditorIndex,
60 $result = $this->extractorDto->getResult();
63 $value ===
'Inspector-PropertyGridEditor'
64 || $value ===
'Inspector-MultiSelectEditor'
66 $identifierPath = implode(
69 'formElementsDefinition',
72 'propertyCollections',
73 $propertyCollectionName,
74 $propertyCollectionIndex,
80 $result[
'formElements'][$formElementType][
'collections'][$propertyCollectionName][$identifier][
'multiValueProperties'][] = $propertyValue;
81 if ($value ===
'Inspector-PropertyGridEditor') {
82 $result[
'formElements'][$formElementType][
'collections'][$propertyCollectionName][$identifier][
'multiValueProperties'][] =
'defaultValue';
85 $result[
'formElements'][$formElementType][
'multiValueProperties'][] = $propertyValue;
88 $this->extractorDto->setResult($result);