Automattic\WooCommerce\Vendor\Symfony\Component\CssSelector\XPath
TranslatorInterface::selectorToXPath
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() TranslatorInterface::selectorToXPath code WC 10.4.3
public function selectorToXPath(SelectorNode $selector, string $prefix = 'descendant-or-self::'): string;