src/Framework/Form/AspiForm.php
public function getAllErrors()
    {
        $errors = [];
        $fields = $this->getFields();
        foreach ($fields as $name => $field) {
            if ($field->hasErrors()) {
                $errors[str_replace('[]', '', $field->getName())] = $field->getErrors();
            }
        }
        return $errors;
    }
public function getAllErrors()
    {
        $errors = [];
        $fields = $this->getFields();
        foreach ($fields as $name => $field) {
            if ($field->hasErrors()) {
                $errors[str_replace('[]', '', $field->getName())] = $field->getErrors();
            }
        }
        return $errors;
    }
public function getAllErrors ( ) { $ errors = [ ] ; $ fields = $ this -> getFields ( ) ; foreach ( $ fields as $ name => $ field ) { if ( $ field -> hasErrors ( ) ) { $ errors [ str_replace ( '[]' , '' , $ field -> getName ( ) ) ] = $ field -> getErrors ( ) ; } } return $ errors ; }
Get all form element errors

@return array
Get all form element errors