You are here

protected function PageContext::populateHtmlHead in Acquia Lift Connector 8.4

Same name and namespace in other branches
  1. 8.3 src/Service/Context/PageContext.php \Drupal\acquia_lift\Service\Context\PageContext::populateHtmlHead()

Populate page's HTML head.

Parameters

&$html_head: The page's HTML head that is to be populated.

Overrides BaseContext::populateHtmlHead

File

src/Service/Context/PageContext.php, line 402

Class

PageContext

Namespace

Drupal\acquia_lift\Service\Context

Code

protected function populateHtmlHead(&$htmlHead) {
  parent::populateHtmlHead($htmlHead);

  // Attach Lift's JavaScript.
  $htmlHead[] = $this
    ->getJavaScriptTagRenderArray();
}