public function CombinationExtension::translateDirectAdjacent in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/css-selector/XPath/Extension/CombinationExtension.php \Symfony\Component\CssSelector\XPath\Extension\CombinationExtension::translateDirectAdjacent()
Parameters
XPathExpr $xpath:
XPathExpr $combinedXpath:
Return value
File
- vendor/
symfony/ css-selector/ XPath/ Extension/ CombinationExtension.php, line 67
Class
- CombinationExtension
- XPath expression translator combination extension.
Namespace
Symfony\Component\CssSelector\XPath\ExtensionCode
public function translateDirectAdjacent(XPathExpr $xpath, XPathExpr $combinedXpath) {
return $xpath
->join('/following-sibling::', $combinedXpath)
->addNameTest()
->addCondition('position() = 1');
}