public function AuditFilesMergeFileReferences::confirmSubmissionHandlerFileMerge in Audit Files 4.x
Same name and namespace in other branches
- 8.3 src/Form/AuditFilesMergeFileReferences.php \Drupal\auditfiles\Form\AuditFilesMergeFileReferences::confirmSubmissionHandlerFileMerge()
- 8 src/Form/AuditFilesMergeFileReferences.php \Drupal\auditfiles\Form\AuditFilesMergeFileReferences::confirmSubmissionHandlerFileMerge()
- 8.2 src/Form/AuditFilesMergeFileReferences.php \Drupal\auditfiles\Form\AuditFilesMergeFileReferences::confirmSubmissionHandlerFileMerge()
Confirm form submission.
File
- src/
Form/ AuditFilesMergeFileReferences.php, line 439
Class
- AuditFilesMergeFileReferences
- Form for merge file references.
Namespace
Drupal\auditfiles\FormCode
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']);
}