WordPress at a glance
function is not described

Symfony\Component\CssSelector\XPath\Extension

CombinationExtension::translateDirectAdjacent() public WC 1.0

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

No Hooks.

Return

XPathExpr.

Usage

$CombinationExtension = new CombinationExtension();
$CombinationExtension->translateDirectAdjacent( $xpath, $combinedXpath );
$xpath(XPathExpr) (required)
-
$combinedXpath(XPathExpr) (required)
-

Code of CombinationExtension::translateDirectAdjacent() WC 5.4.1

<?php
public function translateDirectAdjacent(XPathExpr $xpath, XPathExpr $combinedXpath)
{
    return $xpath
        ->join('/following-sibling::', $combinedXpath)
        ->addNameTest()
        ->addCondition('position() = 1');
}