waypoints.module in jQuery waypoints 8
Same filename and directory in other branches
Main file for Waypoints module.
File
waypoints.moduleView source
<?php
/**
* @file
* Main file for Waypoints module.
*/
/**
* Implements hook_page_attachments().
*/
function waypoints_page_attachments(&$page) {
if (\Drupal::configFactory()
->getEditable('waypoints.settings')
->get('waypoints_always_add_js')) {
$page['#attached']['library'][] = 'waypoints/waypoints';
}
}
Functions
Name | Description |
---|---|
waypoints_page_attachments | Implements hook_page_attachments(). |