Automattic\WooCommerce\Vendor\Symfony\Component\CssSelector\XPath\Extension
AttributeMatchingExtension::translateExists
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() AttributeMatchingExtension::translateExists code WC 10.5.0
public function translateExists(XPathExpr $xpath, string $attribute, ?string $value): XPathExpr
{
return $xpath->addCondition($attribute);
}