function hook_acsf_duplication_scrub_remaining_counts_alter in Acquia Cloud Site Factory Connector 8.2
Same name and namespace in other branches
- 8 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()
- AcsfDuplicationCommands::duplicationScrubProgress in acsf_duplication/
src/ Commands/ AcsfDuplicationCommands.php - Returns information about the progress of the batch scrubbing process.
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();
}