function advagg_update_8201 in Advanced CSS/JS Aggregation 8.2
Implements hook_update_N().
Updates all the stored file information.
File
- ./
advagg.install, line 135 - Handles Advanced Aggregation installation and upgrade tasks.
Code
function advagg_update_8201() {
$advagg_files = \Drupal::service('state.advagg.files');
$files = $advagg_files
->getAll();
foreach ($files as $file => $cached) {
$advagg_files
->scanFile($file, $cached);
}
}