public function BatchStorage::delete

Loads a batch.

Parameters

int $id: The ID of the batch to delete.

Overrides BatchStorageInterface::delete

File

drupal/core/lib/Drupal/Core/Utility/BatchStorage.php, line 40
Contains \Drupal\Core\Utility\BatchStorage.

Class

BatchStorage

Namespace

Drupal\Core\Utility

Code

public function delete($id) {
  $this->connection
    ->delete('batch')
    ->condition('bid', $id)
    ->execute();
}