WordPress at a glance
function is not described

Pelago\Emogrifier\HtmlProcessor

AbstractHtmlProcessor::fromDomDocument() public WC 1.0

Builds a new instance from the given DOM document.

{} It's a method of the class: AbstractHtmlProcessor{}

No Hooks.

Return

static.

Usage

$result = AbstractHtmlProcessor::fromDomDocument( \DOMDocument $document );
\DOMDocument $document (required)
-

Code of AbstractHtmlProcessor::fromDomDocument() WC 5.0.0

<?php
public static function fromDomDocument(\DOMDocument $document)
{
    $instance = new static();
    $instance->setDomDocument($document);

    return $instance;
}