public function XPathExpr::addCondition in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/css-selector/XPath/XPathExpr.php \Symfony\Component\CssSelector\XPath\XPathExpr::addCondition()
Parameters
$condition:
Return value
1 call to XPathExpr::addCondition()
- XPathExpr::addNameTest in vendor/
symfony/ css-selector/ XPath/ XPathExpr.php
File
- vendor/
symfony/ css-selector/ XPath/ XPathExpr.php, line 69
Class
- XPathExpr
- XPath expression translator interface.
Namespace
Symfony\Component\CssSelector\XPathCode
public function addCondition($condition) {
$this->condition = $this->condition ? sprintf('%s and (%s)', $this->condition, $condition) : $condition;
return $this;
}