You are here

public function AuditFilesMergeFileReferences::confirmSubmissionHandlerFileMerge in Audit Files 8

Same name and namespace in other branches
  1. 8.3 src/Form/AuditFilesMergeFileReferences.php \Drupal\auditfiles\Form\AuditFilesMergeFileReferences::confirmSubmissionHandlerFileMerge()
  2. 8.2 src/Form/AuditFilesMergeFileReferences.php \Drupal\auditfiles\Form\AuditFilesMergeFileReferences::confirmSubmissionHandlerFileMerge()
  3. 4.x src/Form/AuditFilesMergeFileReferences.php \Drupal\auditfiles\Form\AuditFilesMergeFileReferences::confirmSubmissionHandlerFileMerge()

Confirm form submission.

File

src/Form/AuditFilesMergeFileReferences.php, line 351

Class

AuditFilesMergeFileReferences

Namespace

Drupal\auditfiles\Form

Code

public function confirmSubmissionHandlerFileMerge(array &$form, FormStateInterface $form_state) {
  $storage = $form_state
    ->getStorage();
  batch_set(\Drupal::service('auditfiles.merge_file_references')
    ->_auditfiles_merge_file_references_batch_merge_create_batch($form_state
    ->getValue('file_being_kept'), $storage['files_being_merged']));
  unset($storage['stage']);
}