public function applyBehavioursOnSubmittedForm(ControllerContext $controllerContext)
    {
        if ($this->formObject->formWasSubmitted()) {
            $request = $controllerContext->getRequest()->getOriginalRequest();
            $formName = $this->formObject->getName();

            if ($request
                && $request->hasArgument($formName)
            ) {
                /** @var BehavioursManager $behavioursManager */
                $behavioursManager = GeneralUtility::makeInstance(BehavioursManager::class);

                /** @var array $originalForm */
                $originalForm = $request->getArgument($formName);

                $formProperties = $behavioursManager->applyBehaviourOnPropertiesArray(
                    $originalForm,
                    $this->formObject->getConfiguration()
                );

                $request->setArgument($formName, $formProperties);
            }
        }
    }
public function applyBehavioursOnSubmittedForm(ControllerContext $controllerContext)
    {
        if ($this->formObject->formWasSubmitted()) {
            $request = $controllerContext->getRequest()->getOriginalRequest();
            $formName = $this->formObject->getName();

            if ($request
                && $request->hasArgument($formName)
            ) {
                /** @var BehavioursManager $behavioursManager */
                $behavioursManager = GeneralUtility::makeInstance(BehavioursManager::class);

                /** @var array $originalForm */
                $originalForm = $request->getArgument($formName);

                $formProperties = $behavioursManager->applyBehaviourOnPropertiesArray(
                    $originalForm,
                    $this->formObject->getConfiguration()
                );

                $request->setArgument($formName, $formProperties);
            }
        }
    }
public function applyBehavioursOnSubmittedForm ( ControllerContext $ controllerContext ) { if ( $ this -> formObject -> formWasSubmitted ( ) ) { $ request = $ controllerContext -> getRequest ( ) -> getOriginalRequest ( ) ; $ formName = $ this -> formObject -> getName ( ) ; if ( $ request && $ request -> hasArgument ( $ formName ) ) { /** @var BehavioursManager $behavioursManager */ $ behavioursManager = GeneralUtility :: makeInstance ( BehavioursManager :: class ) ; /** @var array $originalForm */ $ originalForm = $ request -> getArgument ( $ formName ) ; $ formProperties = $ behavioursManager -> applyBehaviourOnPropertiesArray ( $ originalForm , $ this -> formObject -> getConfiguration ( ) ) ; $ request -> setArgument ( $ formName , $ formProperties ) ; } } }
Will loop on the submitted form fields and apply behaviours if their
configuration contains.

@param ControllerContext $controllerContext
Will loop on the submitted form fields and apply behaviours if their configuration contains .