Same name in other branches
- 5.0.x advagg.drush.inc \drush_advagg_force_new_aggregates()
- 6.0.x advagg.drush.inc \drush_advagg_force_new_aggregates()
- 7.x-2.x advagg.drush.inc \drush_advagg_force_new_aggregates()
- 8.x-3.x advagg.drush.inc \drush_advagg_force_new_aggregates()
- 8.x-4.x advagg.drush.inc \drush_advagg_force_new_aggregates()
Callback function for drush advagg-force-new-aggregates.
Callback is called by using drush_hook_command() where hook is the name of the module (advagg) and command is the name of the Drush command with all "-" characters converted to "_" characters.
Fichier
-
./
advagg.drush.inc, line 78
Code
function drush_advagg_force_new_aggregates() {
// Clear out the cache.
drush_advagg_clear_db_cache();
// Increment counter.
$config = \Drupal::service('config.factory')->getEditable('advagg.settings');
$new_value = $config->get('global_counter') + 1;
$config->set('global_counter', $new_value)
->save();
drush_log(dt('Global counter is now set to @new_value', [
'@new_value' => $new_value,
]), 'ok');
}