public function BackupDatabaseHistoryForm::submitForm in Backup Database 8
Form submission handler.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Overrides FormInterface::submitForm
File
- src/
Form/ BackupDatabaseHistoryForm.php, line 56 - Contains \Drupal\backup_db\Form\BackupDatabaseHistoryForm.
Class
- BackupDatabaseHistoryForm
- BackupDatabaseHistoryForm class.
Namespace
Drupal\backup_db\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$values = $form_state
->getValues();
$files = array_filter($values['table']);
foreach ($files as $file) {
backup_db_history_delete($file);
}
}