main/core/Form/Handler/FormHandler.php
public function isValid($formReference, Request $request, $data = null, array $options = [])
    {
        $form = $this->getForm($formReference, $data, $options);
        $form->handleRequest($request);

        return $form->isValid();
    }
public function isValid($formReference, Request $request, $data = null, array $options = [])
    {
        $form = $this->getForm($formReference, $data, $options);
        $form->handleRequest($request);

        return $form->isValid();
    }
public function isValid ( $ formReference , Request $ request , $ data = null , array $ options = [ ] ) { $ form = $ this -> getForm ( $ formReference , $ data , $ options ) ; $ form -> handleRequest ( $ request ) ; return $ form -> isValid ( ) ; }
Returns whether a form is valid and stores it internally for future use.

@param string  $formReference The form type name
@param Request $request       The request to be bound
@param mixed   $data          An entity or array to be bound
@param array   $options       The options to be passed to the form builder

@return bool
Returns whether a form is valid and stores it internally for future use .