public function validateGhost($form, $initialize = true)
    {
        if ($initialize) {
            $this->initializeValidator($form);
        }

        $this->isValid($form);

        return $this->result;
    }
public function validateGhost($form, $initialize = true)
    {
        if ($initialize) {
            $this->initializeValidator($form);
        }

        $this->isValid($form);

        return $this->result;
    }
public function validateGhost ( $ form , $ initialize = true ) { if ( $ initialize ) { $ this -> initializeValidator ( $ form ) ; } $ this -> isValid ( $ form ) ; return $ this -> result ; }
Validates the form, but won't save form data in the form object.

@param FormInterface $form
@param bool          $initialize
@return FormResult
@internal
Validates the form but won t save form data in the form object .