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

AttributeMatchingExtension::translateExistspublicWC 1.0

Method of the class: AttributeMatchingExtension{}

No Hooks.

Returns

null. Nothing (null).

Usage

$AttributeMatchingExtension = new AttributeMatchingExtension();
$AttributeMatchingExtension->translateExists( $xpath, $attribute, ?string $value ): XPathExpr;
$xpath(XPathExpr) (required)
.
$attribute(string) (required)
.
?string $value(required)
.

AttributeMatchingExtension::translateExists() code WC 10.5.0

public function translateExists(XPathExpr $xpath, string $attribute, ?string $value): XPathExpr
{
    return $xpath->addCondition($attribute);
}