public function Translator::nodeToXPath in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/css-selector/XPath/Translator.php \Symfony\Component\CssSelector\XPath\Translator::nodeToXPath()
Parameters
NodeInterface $node:
Return value
Throws
2 calls to Translator::nodeToXPath()
- Translator::addCombination in vendor/
symfony/ css-selector/ XPath/ Translator.php - Translator::selectorToXPath in vendor/
symfony/ css-selector/ XPath/ Translator.php - Translates a parsed selector node to an XPath expression.
File
- vendor/
symfony/ css-selector/ XPath/ Translator.php, line 202
Class
- Translator
- XPath expression translator interface.
Namespace
Symfony\Component\CssSelector\XPathCode
public function nodeToXPath(NodeInterface $node) {
if (!isset($this->nodeTranslators[$node
->getNodeName()])) {
throw new ExpressionErrorException(sprintf('Node "%s" not supported.', $node
->getNodeName()));
}
return call_user_func($this->nodeTranslators[$node
->getNodeName()], $node, $this);
}