WordPress at a glance
function is not described

Symfony\Component\CssSelector\XPath\Extension

AttributeMatchingExtension::translateDifferent() public WC 1.0

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

No Hooks.

Return

XPathExpr.

Usage

$AttributeMatchingExtension = new AttributeMatchingExtension();
$AttributeMatchingExtension->translateDifferent( $xpath, $attribute, $value );
$xpath(XPathExpr) (required)
-
$attribute(string) (required)
-
$value(string) (required)
-

Code of AttributeMatchingExtension::translateDifferent() WC 5.4.1

<?php
public function translateDifferent(XPathExpr $xpath, $attribute, $value)
{
    return $xpath->addCondition(sprintf(
        $value ? 'not(%1$s) or %1$s != %2$s' : '%s != %s',
        $attribute,
        Translator::getXpathLiteral($value)
    ));
}