public function Translator::nodeToXPath in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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);
}