concrete/src/Error/ErrorList/Formatter/StandardFormatter.php
public function getString()
    {
        $html = '';
        if ($this->error->has()) {
            $html .= '<ul class="ccm-error">';
            foreach ($this->error->getList() as $error) {
                $html .= '<li>';
                if ($error instanceof HtmlAwareErrorInterface && $error->messageContainsHtml()) {
                    $html .= (string) $error;
                } else {
                    $html .= nl2br(h((string) $error));
                }
                $html .= '</li>';
            }
            $html .= '</ul>';
        }

        return $html;
    }
public function getString()
    {
        $html = '';
        if ($this->error->has()) {
            $html .= '<ul class="ccm-error">';
            foreach ($this->error->getList() as $error) {
                $html .= '<li>';
                if ($error instanceof HtmlAwareErrorInterface && $error->messageContainsHtml()) {
                    $html .= (string) $error;
                } else {
                    $html .= nl2br(h((string) $error));
                }
                $html .= '</li>';
            }
            $html .= '</ul>';
        }

        return $html;
    }
public function getString ( ) { $ html = '' ; if ( $ this -> error -> has ( ) ) { $ html .= '<ul class="ccm-error">' ; foreach ( $ this -> error -> getList ( ) as $ error ) { $ html .= '<li>' ; if ( $ error instanceof HtmlAwareErrorInterface && $ error -> messageContainsHtml ( ) ) { $ html .= ( string ) $ error ; } else { $ html .= nl2br ( h ( ( string ) $ error ) ) ; } $ html .= '</li>' ; } $ html .= '</ul>' ; } return $ html ; }
Build an HTML-formatted string describing the errors.

@return string
Build an HTML - formatted string describing the errors .