Automattic\WooCommerce\Vendor\Symfony\Component\CssSelector\XPath

Translator::selectorToXPathpublicWC 1.0

{@inheritdoc}

Method of the class: Translator{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

Translator::selectorToXPath() code WC 10.5.0

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