You are here

public function NodeExtension::translateSelector in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/css-selector/XPath/Extension/NodeExtension.php \Symfony\Component\CssSelector\XPath\Extension\NodeExtension::translateSelector()

Parameters

Node\SelectorNode $node:

Translator $translator:

Return value

XPathExpr

File

vendor/symfony/css-selector/XPath/Extension/NodeExtension.php, line 100

Class

NodeExtension
XPath expression translator node extension.

Namespace

Symfony\Component\CssSelector\XPath\Extension

Code

public function translateSelector(Node\SelectorNode $node, Translator $translator) {
  return $translator
    ->nodeToXPath($node
    ->getTree());
}