You are here

public function AuditFilesUsedNotManaged::confirmSubmissionHandlerDeleteFile in Audit Files 8

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

Submit handler for confirmation.

File

src/Form/AuditFilesUsedNotManaged.php, line 202

Class

AuditFilesUsedNotManaged
Class for file used but not managed.

Namespace

Drupal\auditfiles\Form

Code

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