Skip to content
Snippets Groups Projects
Commit 876860a9 authored by jaapjansma's avatar jaapjansma
Browse files

output of an action is also taken into account

parent fca1a49b
No related branches found
No related tags found
No related merge requests found
......@@ -66,6 +66,7 @@
// Execute the actions
$actionParams = array();
$output = array();
foreach($formProcessor['actions'] as $action) {
// Create a parameter bag for the action
$parameterBag = $actionProvider->createParameterBag();
......@@ -79,10 +80,13 @@
}
$outputBag = $action['type']->execute($parameterBag);
// @Todo catch the output of the action
foreach($outputBag as $field => $value) {
$actionParams[$action['id']][$field] = $value;
$output[$action['title']][$field] = $value;
}
}
return array('succes' => 1);
return $output;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment