WordPress at a glance
function is not described

Symfony\Component\CssSelector\XPath\Extension

NodeExtension::translatePseudo() public WC 1.0

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

No Hooks.

Return

XPathExpr. Nothing.

Usage

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

Code of NodeExtension::translatePseudo() WC 5.4.1

<?php
public function translatePseudo(Node\PseudoNode $node, Translator $translator)
{
    $xpath = $translator->nodeToXPath($node->getSelector());

    return $translator->addPseudoClass($xpath, $node->getIdentifier());
}