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

Tested-by: default avatarTYPO3com <>
Reviewed-by: Björn Jacob's avatarBjoern Jacob <>
Tested-by: Björn Jacob's avatarBjoern Jacob <>
Reviewed-by: default avatarDaniel Lorenz <>
Reviewed-by: Anja Leichsenring's avatarAnja Leichsenring <>
Tested-by: Anja Leichsenring's avatarAnja Leichsenring <>
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