You are here

public function HtmlExtension::translateLink in Zircon Profile 8

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

Parameters

XPathExpr $xpath:

Return value

XPathExpr

File

vendor/symfony/css-selector/XPath/Extension/HtmlExtension.php, line 88

Class

HtmlExtension
XPath expression translator HTML extension.

Namespace

Symfony\Component\CssSelector\XPath\Extension

Code

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