function load_pace in PACE - Page load progress bar 8
Same name and namespace in other branches
- 7 pace.module \load_pace()
- 2.0.x pace.module \load_pace()
1 call to load_pace()
- pace_preprocess_html in ./
pace.module - Implements template_preprocess_html().
File
- ./
pace.module, line 26 - Loads PACE js.
Code
function load_pace(&$variables) {
$variables['#attached']['library'][] = 'pace/pace';
$variables['#attached']['library'][] = 'pace/' . \Drupal::config('pace.settings')
->get('pace_color') . '-' . \Drupal::config('pace.settings')
->get('pace_theme');
}