WordPress at a glance
function is not described

Symfony\Component\CssSelector\XPath\Extension

HtmlExtension::translateLink() public WC 1.0

{} It's a method of the class: HtmlExtension{}

No Hooks.

Return

XPathExpr.

Usage

$HtmlExtension = new HtmlExtension();
$HtmlExtension->translateLink( $xpath );
$xpath(XPathExpr) (required)
-

Code of HtmlExtension::translateLink() WC 5.4.1

<?php
public function translateLink(XPathExpr $xpath)
{
    return $xpath->addCondition("@href and (name(.) = 'a' or name(.) = 'link' or name(.) = 'area')");
}