public function GTMContainerManager::getNoScriptAttachments in GoogleTagManager 7.2
Adds render array items of page top attachments.
Parameters
array $page: The page render array.
Overrides ContainerManagerInterface::getNoScriptAttachments
File
- includes/
entity/ manager.inc, line 170
Class
- GTMContainerManager
- Defines the Google tag container manager.
Code
public function getNoScriptAttachments(array &$page) {
$containers = $this
->loadContainers();
foreach ($containers as $container) {
if (!$container
->insertSnippet()) {
continue;
}
$page += array(
'page_top' => array(),
);
$page['page_top'] += $container
->noscriptTag();
}
}