src/Framework/Form/AspiForm.php
public function getErrors($name)
    {
        $field  = $this->getField($name);
        $errors = (null !== $field) ? $field->getErrors() : [];
        return $errors;
    }
public function getErrors($name)
    {
        $field  = $this->getField($name);
        $errors = (null !== $field) ? $field->getErrors() : [];
        return $errors;
    }
public function getErrors ( $ name ) { $ field = $ this -> getField ( $ name ) ; $ errors = ( null !== $ field ) ? $ field -> getErrors ( ) : [ ] ; return $ errors ; }
Get form element errors for a field.

@param  string $name
@return array
Get form element errors for a field .