Same name in other branches
- 7.x-2.x 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 - JsCollectionOptimizer::__construct in src/
Asset/ JsCollectionOptimizer.php - SettingsForm::buildForm in advagg_mod/
src/ Form/ SettingsForm.php
File
-
./
advagg.module, line 446
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;
}