You are here

function acsf_duplication_acsf_registry in Acquia Cloud Site Factory Connector 8

Same name and namespace in other branches
  1. 8.2 acsf_duplication/acsf_duplication.module \acsf_duplication_acsf_registry()

Implements hook_acsf_registry().

File

acsf_duplication/acsf_duplication.module, line 14
Provides site duplication handlers.

Code

function acsf_duplication_acsf_registry() {
  $scrub_handlers = [
    '\\Drupal\\acsf\\Event\\AcsfDuplicationScrubInitializeHandler' => -100,
    '\\Drupal\\acsf\\Event\\AcsfDuplicationScrubConfigurationHandler' => 10,
    '\\Drupal\\acsf\\Event\\AcsfDuplicationScrubCommentHandler' => 20,
    '\\Drupal\\acsf\\Event\\AcsfDuplicationScrubNodeHandler' => 30,
    '\\Drupal\\acsf\\Event\\AcsfDuplicationScrubUserHandler' => 40,
    '\\Drupal\\acsf\\Event\\AcsfDuplicationScrubTemporaryFilesHandler' => 50,
    '\\Drupal\\acsf\\Event\\AcsfDuplicationScrubTruncateTablesHandler' => 70,
    '\\Drupal\\acsf\\Event\\AcsfDuplicationScrubFinalizeHandler' => 100,
  ];
  foreach ($scrub_handlers as $class => $weight) {
    $events[] = [
      'type' => 'site_duplication_scrub',
      'class' => $class,
      'weight' => $weight,
    ];
  }
  return [
    'events' => $events,
  ];
}