[TASK] EXT:form - add onSubmit callback for pages
[Packages/TYPO3.CMS.git] / typo3 / sysext / form / Classes / Domain / Runtime / FormRuntime.php
index 2361aeb..18e0a2b 100644 (file)
@@ -404,6 +404,9 @@ class FormRuntime implements RootRenderableInterface, \ArrayAccess
                 $propertyPathsForWhichPropertyMappingShouldHappen[$temporaryPropertyPath] = $temporaryPropertyPath;
             }
         };
+
+        $value = null;
+        $page->onSubmit($this, $value, $requestArguments);
         foreach ($page->getElementsRecursively() as $element) {
             try {
                 $value = ArrayUtility::getValueByPath($requestArguments, $element->getIdentifier(), '.');