2 declare(strict_types = 1);
32 public function __invoke(
string $_, $value, array $matches)
36 $result = $this->extractorDto->getResult();
37 $result = array_merge_recursive($result, [
'formElements' => $formElementPropertyPaths]);
38 $this->extractorDto->setResult($result);
48 [, $formElementType, $formEditorIndex] = $matches;
50 $paths[$formElementType][
'propertyPaths'] = [];
51 $templateNamePath = implode(
54 'formElementsDefinition',
63 $this->extractorDto->getPrototypeConfiguration(),
71 if ($templateName ===
'Inspector-GridColumnViewPortConfigurationEditor') {
72 $viewPortsPath = implode(
75 'formElementsDefinition',
80 'configurationOptions',
85 foreach ($viewPorts as $viewPort) {
86 $viewPortIdentifier = $viewPort[
'viewPortIdentifier'];
87 $propertyPath = str_replace(
'{@viewPortIdentifier}', $viewPortIdentifier, $value);
88 $paths[$formElementType][
'propertyPaths'][] = $propertyPath;
91 $paths[$formElementType][
'propertyPaths'][] = $value;