You are here

public function HtmlAssetInliner::__construct in TMGMT Translator Smartling 8.4

Same name and namespace in other branches
  1. 8 src/Context/HtmlAssetInliner.php \Drupal\tmgmt_smartling\Context\HtmlAssetInliner::__construct()
  2. 8.2 src/Context/HtmlAssetInliner.php \Drupal\tmgmt_smartling\Context\HtmlAssetInliner::__construct()
  3. 8.3 src/Context/HtmlAssetInliner.php \Drupal\tmgmt_smartling\Context\HtmlAssetInliner::__construct()

File

src/Context/HtmlAssetInliner.php, line 37

Class

HtmlAssetInliner

Namespace

Drupal\tmgmt_smartling\Context

Code

public function __construct() {

  # suppress DOM parsing errors
  libxml_use_internal_errors(TRUE);
  $this->dom = new \DOMDocument();
  $this->dom->preserveWhiteSpace = FALSE;

  # avoid strict error checking
  $this->dom->strictErrorChecking = FALSE;
}