WordPress at a glance
function is not described

Symfony\Component\CssSelector\XPath

Translator::nodeToXPath() public WC 1.0

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

No Hooks.

Return

XPathExpr.

Usage

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

Code of Translator::nodeToXPath() WC 5.4.1

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

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