You are here

public function HtmlExtension::__construct in Zircon Profile 8.0

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

Constructor.

Parameters

Translator $translator:

File

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

Class

HtmlExtension
XPath expression translator HTML extension.

Namespace

Symfony\Component\CssSelector\XPath\Extension

Code

public function __construct(Translator $translator) {
  $translator
    ->getExtension('node')
    ->setFlag(NodeExtension::ELEMENT_NAME_IN_LOWER_CASE, true)
    ->setFlag(NodeExtension::ATTRIBUTE_NAME_IN_LOWER_CASE, true);
}