eZ\Publish\Core\FieldType\RichText\Validator::formatSVRLFailure PHP Method

formatSVRLFailure() protected method

Returns SVRL assertion failure as a string.
protected formatSVRLFailure ( DOMElement $failedAssert ) : string
$failedAssert DOMElement
return string
    protected function formatSVRLFailure(DOMElement $failedAssert)
    {
        $location = $failedAssert->getAttribute('location');
        return (strlen($location) ? $location . ': ' : '') . $failedAssert->textContent;
    }