Implements hook_advagg_asset_path_alter().

Fichier

advagg_mod/advagg_mod.module, line 177

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';
        }
    }
}