function waypoints_page_attachments in jQuery waypoints 8
Implements hook_page_attachments().
File
- ./
waypoints.module, line 10 - Main file for Waypoints module.
Code
function waypoints_page_attachments(&$page) {
if (\Drupal::configFactory()
->getEditable('waypoints.settings')
->get('waypoints_always_add_js')) {
$page['#attached']['library'][] = 'waypoints/waypoints';
}
}