Automattic\WooCommerce\Vendor\Symfony\Component\CssSelector\XPath
Translator::nodeToXPath
Method of the class: Translator{}
No Hooks.
Returns
null. Nothing (null).
Usage
$Translator = new Translator(); $Translator->nodeToXPath( $node ): XPathExpr;
- $node(NodeInterface) (required)
- .
Translator::nodeToXPath() 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);
}