function google_tag_page_attachments in GoogleTagManager 8
Implements hook_page_attachments().
File
- ./
google_tag.module, line 68 - Provides primary Drupal hook implementations.
Code
function google_tag_page_attachments(array &$attachments) {
$manager = \Drupal::service('google_tag.container_manager');
$manager
->getScriptAttachments($attachments);
}