function advagg_get_current_hooks_hash in Advanced CSS/JS Aggregation 8.2
Same name and namespace in other branches
- 7.2 advagg.module \advagg_get_current_hooks_hash()
Get the hash of all hooks and settings that affect aggregated files contents.
Return value
string hash value.
5 calls to advagg_get_current_hooks_hash()
- AssetDumper::__construct in src/
Asset/ AssetDumper.php - Construct the AssetDumper instance.
- CssCollectionOptimizer::__construct in src/
Asset/ CssCollectionOptimizer.php - InfoForm::buildForm in src/
Form/ InfoForm.php - Form constructor.
- JsCollectionOptimizer::__construct in src/
Asset/ JsCollectionOptimizer.php - SettingsForm::buildForm in advagg_mod/
src/ Form/ SettingsForm.php - Form constructor.
File
- ./
advagg.module, line 446 - Advanced CSS/JS aggregation module.
Code
function advagg_get_current_hooks_hash() {
$current_hash =& drupal_static(__FUNCTION__);
if (!isset($current_hash)) {
// Get all advagg hooks and variables in use.
$aggregate_settings = advagg_current_hooks_hash_array();
// Generate the hash.
$serialize_function = advagg_get_serializer();
$current_hash = Crypt::hashBase64($serialize_function($aggregate_settings));
}
return $current_hash;
}