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

Parameters

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

See also

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

advagg_mod_advagg_asset_path_alter()

Related topics

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 in advagg_mod/advagg_mod.module
Implements hook_advagg_asset_path_alter().
1 invocation of hook_advagg_asset_path_alter()
AssetDumper::preparePath in src/Asset/AssetDumper.php
Set the folder path to save the data to.

File

./advagg.api.php, line 167

Code

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