You are here

function advagg_mod_advagg_asset_path_alter in Advanced CSS/JS Aggregation 8.2

Implements hook_advagg_asset_path_alter().

File

advagg_mod/advagg_mod.module, line 177
Advanced aggregation modifier module.

Code

function advagg_mod_advagg_asset_path_alter(&$path, $extension) {
  if ($dir = rtrim(\Drupal::config('advagg_mod.settings')
    ->get('unified_multisite_dir'), '/')) {
    if ($extension == 'js') {
      $path = $dir . '/js';
    }
    elseif ($extension == 'css') {
      $path = $dir . '/css';
    }
  }
}