final public function validate($form)
    {
        $this->initializeValidator($form);

        $formObject = $this->formValidatorExecutor->getFormObject();
        $formObject->markFormAsSubmitted();
        $formObject->setForm($form);

        $this->validateGhost($form, false);

        $formObject->setFormResult($this->result);

        return $this->result;
    }
final public function validate($form)
    {
        $this->initializeValidator($form);

        $formObject = $this->formValidatorExecutor->getFormObject();
        $formObject->markFormAsSubmitted();
        $formObject->setForm($form);

        $this->validateGhost($form, false);

        $formObject->setFormResult($this->result);

        return $this->result;
    }
final public function validate ( $ form ) { $ this -> initializeValidator ( $ form ) ; $ formObject = $ this -> formValidatorExecutor -> getFormObject ( ) ; $ formObject -> markFormAsSubmitted ( ) ; $ formObject -> setForm ( $ form ) ; $ this -> validateGhost ( $ form , false ) ; $ formObject -> setFormResult ( $ this -> result ) ; return $ this -> result ; }
Checks the given form instance, and launches the validation if it is a
correct form.

@param FormInterface $form The form instance to be validated.
@return FormResult
Checks the given form instance and launches the validation if it is a correct form .