- Added formContextValuesRoot to form context

This commit is contained in:
Dave M. 2026-01-16 16:21:50 -05:00
parent 2e3788a295
commit 7e2d4c7dc2

View File

@ -15,6 +15,8 @@ class FormContext implements FormContextInterface
public mixed $formExecutionStatus = null;
protected string $formContextValuesRoot;
public array $formContextValues = [];
public array $formContextFiles = [];
@ -43,6 +45,10 @@ class FormContext implements FormContextInterface
}
}
if ($this->formContextValuesRoot ?? false) {
$this->formContextValues = $this->formContextValues[$this->formContextValuesRoot] ?? [];
}
$this->fillValues();
$this->formContextFiles = $formContextRequest->getUploadedFiles() ?: [];