protected function BaseContext::populateHtmlHead in Acquia Lift Connector 8.4
Same name and namespace in other branches
- 8.3 src/Service/Context/BaseContext.php \Drupal\acquia_lift\Service\Context\BaseContext::populateHtmlHead()
Populate page's HTML head.
Parameters
&$html_head: The page's HTML head that is to be populated.
2 calls to BaseContext::populateHtmlHead()
- BaseContext::populate in src/
Service/ Context/ BaseContext.php - Populate page by context.
- PageContext::populateHtmlHead in src/
Service/ Context/ PageContext.php - Populate page's HTML head.
1 method overrides BaseContext::populateHtmlHead()
- PageContext::populateHtmlHead in src/
Service/ Context/ PageContext.php - Populate page's HTML head.
File
- src/
Service/ Context/ BaseContext.php, line 48
Class
Namespace
Drupal\acquia_lift\Service\ContextCode
protected function populateHtmlHead(&$html_head) {
// Attach Lift's metatags.
foreach ($this->htmlHeadContexts as $name => $context) {
$renderArray = $this
->getMetaTagRenderArray($name, $context);
// To generate meta tags within HTML head, Drupal requires this precise
// format of render array.
$html_head[] = [
$renderArray,
$name,
];
}
}