function google_analytics_et_page_attachments in Google Analytics Event Tracking 8
Same name and namespace in other branches
- 8.2 google_analytics_et.module \google_analytics_et_page_attachments()
Implements hook_page_attachments().
File
- ./
google_analytics_et.module, line 29 - Contains google_analytics_et.module.
Code
function google_analytics_et_page_attachments(&$attachments) {
// Add our effective JS attachments and settings (if any).
\Drupal::service('google_analytics_event_tracking')
->addAttachments($attachments);
}