WordPress at a glance
function is not described

Symfony\Component\CssSelector\XPath\Extension

NodeExtension::translateSelector() public WC 1.0

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

No Hooks.

Return

XPathExpr. Nothing.

Usage

$NodeExtension = new NodeExtension();
$NodeExtension->translateSelector( Node\SelectorNode $node, $translator );
Node\SelectorNode $node (required)
-
$translator(Translator) (required)
-

Code of NodeExtension::translateSelector() WC 5.4.1

<?php
public function translateSelector(Node\SelectorNode $node, Translator $translator)
{
    return $translator->nodeToXPath($node->getTree());
}