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