Allow other modules to modify the path to save aggregates to.

Paramètres

string $path: The currently set folder to save the aggregated assets to.

Voir aussi

Drupal\advagg\Asset\AssetDumper::preparePath()

advagg_mod_advagg_asset_path_alter()

Sujets associés

1 function implements hook_advagg_asset_path_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

advagg_mod_advagg_asset_path_alter dans advagg_mod/advagg_mod.module
Implements hook_advagg_asset_path_alter().
1 invocation of hook_advagg_asset_path_alter()
AssetDumper::preparePath dans src/Asset/AssetDumper.php
Set the folder path to save the data to.

Fichier

./advagg.api.php, line 167

Code

function hook_advagg_asset_path_alter(&$path, $extension) {
    if ($extension == 'js') {
        $path = 'public://javascript/';
    }
}