Automattic\WooCommerce\Vendor\Symfony\Component\CssSelector\XPath

Translator::nodeToXPathpublicWC 1.0

Method of the class: Translator{}

No Hooks.

Returns

null. Nothing (null).

Usage

$Translator = new Translator();
$Translator->nodeToXPath( $node ): XPathExpr;
$node(NodeInterface) (required)
.

Translator::nodeToXPath() code WC 10.5.0

public function nodeToXPath(NodeInterface $node): XPathExpr
{
    if (!isset($this->nodeTranslators[$node->getNodeName()])) {
        throw new ExpressionErrorException(sprintf('Node "%s" not supported.', $node->getNodeName()));
    }

    return $this->nodeTranslators[$node->getNodeName()]($node, $this);
}