Automattic\WooCommerce\EmailEditorVendor\Pelago\Emogrifier\HtmlProcessor

AbstractHtmlProcessor::getDomDocument │ public │ WC 1.0

Provides access to the internal DOMDocument representation of the HTML in its current state.

Метод класса: AbstractHtmlProcessor{}

Хуков нет.

Возвращает

\DOMDocument.

Использование

$AbstractHtmlProcessor = new AbstractHtmlProcessor();
$AbstractHtmlProcessor->getDomDocument(): \DOMDocument;

Код AbstractHtmlProcessor::getDomDocument() WC 11.3.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;
}