concrete/src/Error/ErrorList/Formatter/TextFormatter.php
public function getText()
    {
        $lines = [];
        if ($this->error->has()) {
            foreach ($this->error->getList() as $error) {
                if ($error instanceof HtmlAwareErrorInterface && $error->messageContainsHtml()) {
                    $lines[] = strip_tags((string) $error);
                } else {
                    $lines[] = (string) $error;
                }
            }
        }

        return implode("\n", $lines);
    }
public function getText()
    {
        $lines = [];
        if ($this->error->has()) {
            foreach ($this->error->getList() as $error) {
                if ($error instanceof HtmlAwareErrorInterface && $error->messageContainsHtml()) {
                    $lines[] = strip_tags((string) $error);
                } else {
                    $lines[] = (string) $error;
                }
            }
        }

        return implode("\n", $lines);
    }
public function getText ( ) { $ lines = [ ] ; if ( $ this -> error -> has ( ) ) { foreach ( $ this -> error -> getList ( ) as $ error ) { if ( $ error instanceof HtmlAwareErrorInterface && $ error -> messageContainsHtml ( ) ) { $ lines [ ] = strip_tags ( ( string ) $ error ) ; } else { $ lines [ ] = ( string ) $ error ; } } } return implode ( "\n" , $ lines ) ; }
Build an plain text string describing the errors.

@return string
Build an plain text string describing the errors .