Automattic\WooCommerce\Vendor\Pelago\Emogrifier\HtmlProcessor
AbstractHtmlProcessor::getDomDocument
Provides access to the internal DOMDocument representation of the HTML in its current state.
Method of the class: AbstractHtmlProcessor{}
No Hooks.
Returns
\DOMDocument.
Usage
$AbstractHtmlProcessor = new AbstractHtmlProcessor(); $AbstractHtmlProcessor->getDomDocument(): \DOMDocument;
AbstractHtmlProcessor::getDomDocument() AbstractHtmlProcessor::getDomDocument code WC 10.5.0
public function getDomDocument(): \DOMDocument
{
if (!$this->domDocument instanceof \DOMDocument) {
$message = self::class . '::setDomDocument() has not yet been called on ' . static::class;
throw new \UnexpectedValueException($message, 1570472239);
}
return $this->domDocument;
}