You are here

protected function YamlFormSubmissionStorage::deleteData in YAML Form 8

Delete form submission data fromthe 'yamlform_submission_data' table.

Parameters

array $yamlform_submissions: An array of form submissions.

1 call to YamlFormSubmissionStorage::deleteData()
YamlFormSubmissionStorage::delete in src/YamlFormSubmissionStorage.php
Deletes permanently saved entities.

File

src/YamlFormSubmissionStorage.php, line 772

Class

YamlFormSubmissionStorage
Defines the form submission storage.

Namespace

Drupal\yamlform

Code

protected function deleteData(array $yamlform_submissions) {
  Database::getConnection()
    ->delete('yamlform_submission_data')
    ->condition('sid', array_keys($yamlform_submissions), 'IN')
    ->execute();
}