You are here

function load_pace in PACE - Page load progress bar 2.0.x

Same name and namespace in other branches
  1. 8 pace.module \load_pace()
  2. 7 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');
}