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

TranslatorInterface::cssToXPathpublicWC 1.0

Translates a CSS selector to an XPath expression.

Method of the class: TranslatorInterface{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

TranslatorInterface::cssToXPath() code WC 10.4.3

public function cssToXPath(string $cssExpr, string $prefix = 'descendant-or-self::'): string;