You are here

function hook_acsf_duplication_scrub_context_alter in Acquia Cloud Site Factory Connector 8.2

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

Alters the scrub event context of `drush acsf-duplication-scrub-batch`.

Use this alter hook to add optional data to the scrub event. The data added here is available via the $this->event->context array in event handlers.

Parameters

array $context: An associative array of context data needed in the event handlers.

array $options: An associative array of drush command options.

See also

drush_acsf_duplication_scrub_batch()

1 function implements hook_acsf_duplication_scrub_context_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

acsf_duplication_acsf_duplication_scrub_context_alter in acsf_duplication/acsf_duplication.module
Alters the scrub event context of `drush acsf-duplication-scrub-batch`.
1 invocation of hook_acsf_duplication_scrub_context_alter()
AcsfDuplicationCommands::duplicationScrubBatch in acsf_duplication/src/Commands/AcsfDuplicationCommands.php
Runs one iteration of the batch scrubbing process on the duplicated site.

File

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

Code

function hook_acsf_duplication_scrub_context_alter(array &$context, array $options) {
  $context['scrub_options']['retain_users'] = $options['exact-copy'];
  $context['scrub_options']['retain_content'] = $options['exact-copy'];
}