WordPress at a glance
function is not described

Symfony\Component\CssSelector\XPath\Extension

PseudoClassExtension::translateEmpty() public WC 1.0

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

No Hooks.

Return

XPathExpr. Nothing.

Usage

$PseudoClassExtension = new PseudoClassExtension();
$PseudoClassExtension->translateEmpty( $xpath );
$xpath(XPathExpr) (required)
-

Code of PseudoClassExtension::translateEmpty() WC 5.4.1

<?php
public function translateEmpty(XPathExpr $xpath)
{
    return $xpath->addCondition('not(*) and not(string-length())');
}