public function NodeExtension::translateFunction in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/css-selector/XPath/Extension/NodeExtension.php \Symfony\Component\CssSelector\XPath\Extension\NodeExtension::translateFunction()
Parameters
Node\FunctionNode $node:
Translator $translator:
Return value
File
- vendor/
symfony/ css-selector/ XPath/ Extension/ NodeExtension.php, line 141
Class
- NodeExtension
- XPath expression translator node extension.
Namespace
Symfony\Component\CssSelector\XPath\ExtensionCode
public function translateFunction(Node\FunctionNode $node, Translator $translator) {
$xpath = $translator
->nodeToXPath($node
->getSelector());
return $translator
->addFunction($xpath, $node);
}