You are here

public function AuditFilesMergeFileReferences::confirmSubmissionHandlerFileMerge in Audit Files 8.2

Same name and namespace in other branches
  1. 8.3 src/Form/AuditFilesMergeFileReferences.php \Drupal\auditfiles\Form\AuditFilesMergeFileReferences::confirmSubmissionHandlerFileMerge()
  2. 8 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 443

Class

AuditFilesMergeFileReferences
Form for merge file references.

Namespace

Drupal\auditfiles\Form

Code

public function confirmSubmissionHandlerFileMerge(array &$form, FormStateInterface $form_state) {
  $storage = $form_state
    ->getStorage();
  batch_set($this->mergeFileReferences
    ->auditfilesMergeFileReferencesBatchMergeCreateBatch($form_state
    ->getValue('file_being_kept'), $storage['files_being_merged']));
  unset($storage['stage']);
}