eZ\Publish\Core\FieldType\RichText\XmlBase::collectErrors PHP Метод

collectErrors() защищенный Метод

Before calling this method error recording must be started by calling {@link startRecordingErrors()}.
См. также: startRecordingErrors()
protected collectErrors ( ) : string[]
Результат string[]
    protected function collectErrors()
    {
        if ($this->useInternalErrors === null) {
            throw new RuntimeException('Error recording not started');
        }
        $xmlErrors = libxml_get_errors();
        $errors = array();
        foreach ($xmlErrors as $error) {
            $errors[] = $this->formatLibXmlError($error);
        }
        libxml_clear_errors();
        libxml_use_internal_errors($this->useInternalErrors);
        $this->useInternalErrors = null;
        return $errors;
    }