final public function isValid($form)
    {
        $this->formValidatorExecutor->applyBehaviours();
        $this->formValidatorExecutor->checkFieldsActivation();

        $this->beforeValidationProcess();

        $this->formValidatorExecutor->validateFields(function (Field $field) {
            $this->callAfterFieldValidationMethod($field);
        });

        $this->afterValidationProcess();

        if ($this->result->hasErrors()) {
            // Storing the form for possible third party further usage.
            FormService::addFormWithErrors($form);
        }
    }
final public function isValid($form)
    {
        $this->formValidatorExecutor->applyBehaviours();
        $this->formValidatorExecutor->checkFieldsActivation();

        $this->beforeValidationProcess();

        $this->formValidatorExecutor->validateFields(function (Field $field) {
            $this->callAfterFieldValidationMethod($field);
        });

        $this->afterValidationProcess();

        if ($this->result->hasErrors()) {
            // Storing the form for possible third party further usage.
            FormService::addFormWithErrors($form);
        }
    }
final public function isValid ( $ form ) { $ this -> formValidatorExecutor -> applyBehaviours ( ) ; $ this -> formValidatorExecutor -> checkFieldsActivation ( ) ; $ this -> beforeValidationProcess ( ) ; $ this -> formValidatorExecutor -> validateFields ( function ( Field $ field ) { $ this -> callAfterFieldValidationMethod ( $ field ) ; } ) ; $ this -> afterValidationProcess ( ) ; if ( $ this -> result -> hasErrors ( ) ) { // Storing the form for possible third party further usage. FormService :: addFormWithErrors ( $ form ) ; } }
Runs the whole validation workflow.

@param FormInterface $form
Runs the whole validation workflow .