public function AuditFilesNotInDatabase::confirmSubmissionHandler in Audit Files 8
Same name and namespace in other branches
- 8.2 src/Form/AuditFilesNotInDatabase.php \Drupal\auditfiles\Form\AuditFilesNotInDatabase::confirmSubmissionHandler()
Delete record from files.
File
- src/
Form/ AuditFilesNotInDatabase.php, line 243
Class
Namespace
Drupal\auditfiles\FormCode
public function confirmSubmissionHandler(array &$form, FormStateInterface $form_state) {
$storage =& $form_state
->getStorage();
if ($storage['op'] == 'add') {
batch_set(\Drupal::service('auditfiles.not_in_database')
->_auditfiles_not_in_database_batch_add_create_batch($form_state
->getValue('changelist')));
}
else {
batch_set(\Drupal::service('auditfiles.not_in_database')
->_auditfiles_not_in_database_batch_delete_create_batch($form_state
->getValue('changelist')));
}
}