eZ\Publish\Core\FieldType\RichText\Normalizer\DocumentTypeDefinition::accept PHP Method

accept() public method

Accept if $input looks like XML document, with configured document element and default namespace, but without DTD.
public accept ( string $input ) : boolean
$input string
return boolean
    public function accept($input)
    {
        if (preg_match($this->getExpression(), $input, $matches)) {
            return true;
        }
        return false;
    }