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

TranslatorInterface::selectorToXPathpublicWC 1.0

Translates a parsed selector node to an XPath expression.

Method of the class: TranslatorInterface{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

TranslatorInterface::selectorToXPath() code WC 10.4.3

public function selectorToXPath(SelectorNode $selector, string $prefix = 'descendant-or-self::'): string;