You are here

public function YamlFormSubmissionsDeleteFormBase::batchFinish in YAML Form 8

Batch API callback; Completed deletion.

Parameters

bool $success: TRUE if batch successfully completed.

array $results: Batch results.

array $operations: An array of function calls (not used in this function).

File

src/Form/YamlFormSubmissionsDeleteFormBase.php, line 201

Class

YamlFormSubmissionsDeleteFormBase
Base form for deleting form submission.

Namespace

Drupal\yamlform\Form

Code

public function batchFinish($success = FALSE, array $results, array $operations) {
  if (!$success) {
    drupal_set_message($this
      ->t('Finished with an error.'));
  }
  else {
    drupal_set_message($this
      ->getFinishedMessage());
  }
}