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

AttributeMatchingExtension::translateEqualspublicWC 1.0

Method of the class: AttributeMatchingExtension{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

AttributeMatchingExtension::translateEquals() code WC 10.7.0

public function translateEquals(XPathExpr $xpath, string $attribute, ?string $value): XPathExpr
{
    return $xpath->addCondition(sprintf('%s = %s', $attribute, Translator::getXpathLiteral($value)));
}