You are here

function hook_acsf_duplication_scrub_remaining_counts_alter in Acquia Cloud Site Factory Connector 8

Same name and namespace in other branches
  1. 8.2 acsf_duplication/acsf_duplication.api.php \hook_acsf_duplication_scrub_remaining_counts_alter()

Alters the counts reported by `drush acsf-duplication-scrub-progress`.

Parameters

array $data: An associative array of counts representing the total number of items remaining to scrub, keyed by [type]_count.

See also

drush_acsf_duplication_scrub_progress()

1 invocation of hook_acsf_duplication_scrub_remaining_counts_alter()
drush_acsf_duplication_scrub_progress in acsf_duplication/acsf_duplication.drush.inc
Command callback. Outputs progress information on the site duplication scrub.

File

acsf_duplication/acsf_duplication.api.php, line 20
Documents hooks provided by the ACSF Duplication module.

Code

function hook_acsf_duplication_scrub_remaining_counts_alter(array &$data) {
  $example_event = AcsfEvent::create('site_duplication_scrub');
  $data['node_count'] = (new AcsfDuplicationScrubCommentHandler($example_event))
    ->countRemaining();
}