WordPress at a glance
function is not described

Symfony\Component\CssSelector\XPath

TranslatorInterface::selectorToXPath() public WC 1.0

Translates a parsed selector node to an XPath expression.

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

No Hooks.

Return

String.

Usage

$TranslatorInterface = new TranslatorInterface();
$TranslatorInterface->selectorToXPath( $selector, $prefix );
$selector(SelectorNode) (required)
-
$prefix(string)
-

Code of TranslatorInterface::selectorToXPath() WC 5.4.1

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