interface TranslatorInterface
XPath expression translator interface.
This component is a port of the Python cssselect library, which is copyright Ian Bicking, see https://github.com/SimonSapin/cssselect.
string | cssToXPath(string $cssExpr, string $prefix = 'descendant-or-self::') Translates a CSS selector to an XPath expression. | |
string | selectorToXPath(SelectorNode $selector, string $prefix = 'descendant-or-self::') Translates a parsed selector node to an XPath expression. |
Translates a CSS selector to an XPath expression.
string | $cssExpr | |
string | $prefix |
string |
Translates a parsed selector node to an XPath expression.
SelectorNode | $selector | |
string | $prefix |
string |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/CssSelector/XPath/TranslatorInterface.html