Commit 8bdbf0c1 authored by Ralf Zimmermann's avatar Ralf Zimmermann Committed by Anja Leichsenring
Browse files

[TASK] EXT:form - add onSubmit callback for pages

Add onSubmit callback for toplevel composit elements aka. pages.
The ticket provides an example extension for testing.

Resolves: #78821
Releases: master
Change-Id: Ie521ba75472e426594dae231ee86f68cd241f23d
Reviewed-on: https://review.typo3.org/50796

Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: Björn Jacob's avatarBjoern Jacob <bjoern.jacob@tritum.de>
Tested-by: Björn Jacob's avatarBjoern Jacob <bjoern.jacob@tritum.de>
Reviewed-by: default avatarDaniel Lorenz <daniel.lorenz@extco.de>
Reviewed-by: Anja Leichsenring's avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring's avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
parent 193d9b4e
......@@ -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(), '.');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment