src/Form/Form/Form.php
public function getErrorAsString()
    {
        $errors  = [];
        foreach($this->getValidator()->getErrors() as $index => $message){
            $errors[] = sprintf('%s:%s %s', $index, PHP_EOL, $message);
        }
        return implode(PHP_EOL, $errors);
    }
public function getErrorAsString()
    {
        $errors  = [];
        foreach($this->getValidator()->getErrors() as $index => $message){
            $errors[] = sprintf('%s:%s %s', $index, PHP_EOL, $message);
        }
        return implode(PHP_EOL, $errors);
    }
public function getErrorAsString ( ) { $ errors = [ ] ; foreach ( $ this -> getValidator ( ) -> getErrors ( ) as $ index => $ message ) { $ errors [ ] = sprintf ( '%s:%s %s' , $ index , PHP_EOL , $ message ) ; } return implode ( PHP_EOL , $ errors ) ; }
Return string formated error from the form validation


@return string
Return string formated error from the form validation