Symfony\Component\CssSelector\CssSelector::toXPath
Translates a CSS expression to its XPath equivalent.
Optionally, a prefix can be added to the resulting XPath expression with the $prefix parameter.
Signature
public function toXPath(mixed
$cssExpr,
[string
$prefix = 'descendant-or-self::'] )
Parameters
$cssExpr
— mixed- The CSS expression.
$prefix
— string- An optional prefix for the XPath expression.
Returns
- string