You are here

waypoints.module in jQuery waypoints 8

Same filename and directory in other branches
  1. 7 waypoints.module

Main file for Waypoints module.

File

waypoints.module
View 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