WordPress at a glance
function is not described

Symfony\Component\CssSelector\XPath

Translator::selectorToXPath() public WC 1.0

{@inheritdoc}

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

No Hooks.

Return

null. Nothing.

Usage

$Translator = new Translator();
$Translator->selectorToXPath( $selector, $prefix );
$selector(SelectorNode) (required)
-
$prefix **
-
Default: 'descendant-or-self::'

Code of Translator::selectorToXPath() WC 5.4.1

<?php
public function selectorToXPath(SelectorNode $selector, $prefix = 'descendant-or-self::')
{
    return ($prefix ?: '').$this->nodeToXPath($selector);
}