Automattic\WooCommerce\Vendor\Symfony\Component\CssSelector\XPath
Translator::selectorToXPath
{@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() Translator::selectorToXPath code WC 10.5.0
public function selectorToXPath(SelectorNode $selector, string $prefix = 'descendant-or-self::'): string
{
return ($prefix ?: '').$this->nodeToXPath($selector);
}