public function PseudoClassExtension::translateRoot in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/css-selector/XPath/Extension/PseudoClassExtension.php \Symfony\Component\CssSelector\XPath\Extension\PseudoClassExtension::translateRoot()
Parameters
XPathExpr $xpath:
Return value
File
- vendor/
symfony/ css-selector/ XPath/ Extension/ PseudoClassExtension.php, line 49
Class
- PseudoClassExtension
- XPath expression translator pseudo-class extension.
Namespace
Symfony\Component\CssSelector\XPath\ExtensionCode
public function translateRoot(XPathExpr $xpath) {
return $xpath
->addCondition('not(parent::*)');
}