You are here

public function AuditFilesUsedNotReferenced::confirmSubmissionHandlerDeleteFile in Audit Files 8

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

Submit form after confirmation.

File

src/Form/AuditFilesUsedNotReferenced.php, line 205

Class

AuditFilesUsedNotReferenced

Namespace

Drupal\auditfiles\Form

Code

public function confirmSubmissionHandlerDeleteFile(array &$form, FormStateInterface $form_state) {
  batch_set(\Drupal::service('auditfiles.used_not_referenced')
    ->_auditfiles_used_not_referenced_batch_delete_create_batch($form_state
    ->getValue('changelist')));
}