Automattic\WooCommerce\Vendor\Pelago\Emogrifier\HtmlProcessor
AbstractHtmlProcessor::getXPath
Method of the class: AbstractHtmlProcessor{}
No Hooks.
Returns
\DOMXPath.
Usage
// protected - for code of main (parent) or child class $result = $this->getXPath(): \DOMXPath;
AbstractHtmlProcessor::getXPath() AbstractHtmlProcessor::getXPath code WC 10.7.0
protected function getXPath(): \DOMXPath
{
if (!$this->xPath instanceof \DOMXPath) {
$message = self::class . '::setDomDocument() has not yet been called on ' . static::class;
throw new \UnexpectedValueException($message, 1617819086);
}
return $this->xPath;
}