You are here

function gathercontent_upload_migrate_update_process in GatherContent 8.5

Upload batch operation callback.

Parameters

array $context: Context of operation.

1 string reference to 'gathercontent_upload_migrate_update_process'
ContentUploadSelectForm::submitForm in gathercontent_upload_ui/src/Form/ContentUploadSelectForm.php
Form submission handler.

File

gathercontent_upload/gathercontent_upload.module, line 51
Main module file for GatherContent Upload module.

Code

function gathercontent_upload_migrate_update_process(&$context) {

  /** @var \Drupal\gathercontent_upload\Export\MigrateUpdater $migrateUpdater */
  $migrateUpdater = \Drupal::service('gathercontent_upload.migrate_updater');
  try {
    $migrateUpdater
      ->updateIdMap($context);
  } catch (\Exception $e) {
    $context['results']['messages'][] = $e
      ->getMessage();
  }
}