WordPress at a glance
function is not described

Symfony\Component\CssSelector\XPath\Extension

HtmlExtension::translateInvalid() public WC 1.0

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

No Hooks.

Return

XPathExpr.

Usage

$HtmlExtension = new HtmlExtension();
$HtmlExtension->translateInvalid( $xpath );
$xpath(XPathExpr) (required)
-

Code of HtmlExtension::translateInvalid() WC 5.4.1

<?php
public function translateInvalid(XPathExpr $xpath)
{
    return $xpath->addCondition('0');
}