protected function getFormResultClass()
    {
        $result = '';
        $formObject = $this->formService->getFormObject();

        if ($formObject->formWasSubmitted()
            && $formObject->hasFormResult()
        ) {
            $fieldResult = $formObject->getFormResult()->forProperty($this->fieldName);
            $result = $this->getPropertyResultClass($fieldResult);
        }

        return $result;
    }
protected function getFormResultClass()
    {
        $result = '';
        $formObject = $this->formService->getFormObject();

        if ($formObject->formWasSubmitted()
            && $formObject->hasFormResult()
        ) {
            $fieldResult = $formObject->getFormResult()->forProperty($this->fieldName);
            $result = $this->getPropertyResultClass($fieldResult);
        }

        return $result;
    }
protected function getFormResultClass ( ) { $ result = '' ; $ formObject = $ this -> formService -> getFormObject ( ) ; if ( $ formObject -> formWasSubmitted ( ) && $ formObject -> hasFormResult ( ) ) { $ fieldResult = $ formObject -> getFormResult ( ) -> forProperty ( $ this -> fieldName ) ; $ result = $ this -> getPropertyResultClass ( $ fieldResult ) ; } return $ result ; }
Checks if the form was submitted, then parses its result to handle
classes depending on TypoScript configuration.

@return string
Checks if the form was submitted then parses its result to handle classes depending on TypoScript configuration .