Same name in other branches
- 5.0.x src/Commands/AdvaggCommands.php \Drupal\advagg\Commands\AdvaggCommands::forceNewAggregates()
- 8.x-3.x src/Commands/AdvaggCommands.php \Drupal\advagg\Commands\AdvaggCommands::forceNewAggregates()
- 8.x-4.x src/Commands/AdvaggCommands.php \Drupal\advagg\Commands\AdvaggCommands::forceNewAggregates()
Force the creation of all new files by incrementing a global counter.
@command advagg-force-new-aggregates @usage Standard example drush advagg-force-new-aggregates @aliases advagg-fna
Fichier
-
src/
Commands/ AdvaggCommands.php, line 138
Classe
- AdvaggCommands
- Advagg commands for Drush 9+.
Namespace
Drupal\advagg\CommandsCode
public function forceNewAggregates() {
// Clear out the cache.
$this->clearAllFiles();
// Increment counter.
$new_value = $this->advaggConfig
->get('global_counter') + 1;
$this->advaggConfig
->set('global_counter', $new_value)
->save();
$this->logger()
->notice(dt('Global counter is now set to @new_value', [
'@new_value' => $new_value,
]));
_drupal_flush_css_js();
}