Skip to content
Snippets Groups Projects
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: default avatarBjoern Jacob <bjoern.jacob@tritum.de>
Tested-by: default avatarBjoern Jacob <bjoern.jacob@tritum.de>
Reviewed-by: default avatarDaniel Lorenz <daniel.lorenz@extco.de>
Reviewed-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
parent 193d9b4e
Branches
Tags
No related merge requests found
......@@ -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(), '.');
......
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