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