public function getFieldsMessagesDataAttributes()
    {
        $result = [];
        $formConfiguration = $this->getFormObject()->getConfiguration();
        $formResult = $this->getFormObject()->getFormResult();

        foreach ($formResult->getSubResults() as $fieldName => $fieldResult) {
            if (true === $formConfiguration->hasField($fieldName)
                && false === $formResult->fieldIsDeactivated($formConfiguration->getField($fieldName))
            ) {
                $result += $this->getFieldErrorMessages($fieldName, $fieldResult);
                $result += $this->getFieldWarningMessages($fieldName, $fieldResult);
                $result += $this->getFieldNoticeMessages($fieldName, $fieldResult);
            }
        }

        return $result;
    }
public function getFieldsMessagesDataAttributes()
    {
        $result = [];
        $formConfiguration = $this->getFormObject()->getConfiguration();
        $formResult = $this->getFormObject()->getFormResult();

        foreach ($formResult->getSubResults() as $fieldName => $fieldResult) {
            if (true === $formConfiguration->hasField($fieldName)
                && false === $formResult->fieldIsDeactivated($formConfiguration->getField($fieldName))
            ) {
                $result += $this->getFieldErrorMessages($fieldName, $fieldResult);
                $result += $this->getFieldWarningMessages($fieldName, $fieldResult);
                $result += $this->getFieldNoticeMessages($fieldName, $fieldResult);
            }
        }

        return $result;
    }
public function getFieldsMessagesDataAttributes ( ) { $ result = [ ] ; $ formConfiguration = $ this -> getFormObject ( ) -> getConfiguration ( ) ; $ formResult = $ this -> getFormObject ( ) -> getFormResult ( ) ; foreach ( $ formResult -> getSubResults ( ) as $ fieldName => $ fieldResult ) { if ( true === $ formConfiguration -> hasField ( $ fieldName ) && false === $ formResult -> fieldIsDeactivated ( $ formConfiguration -> getField ( $ fieldName ) ) ) { $ result += $ this -> getFieldErrorMessages ( $ fieldName , $ fieldResult ) ; $ result += $ this -> getFieldWarningMessages ( $ fieldName , $ fieldResult ) ; $ result += $ this -> getFieldNoticeMessages ( $ fieldName , $ fieldResult ) ; } } return $ result ; }
Handles the data attributes for the fields which got errors, warnings and
notices.

Examples:
- `fz-error-email="1"`
- `fz-error-email-rule-default="1"`

@return array
Handles the data attributes for the fields which got errors warnings and notices .