3 namespace Drupal\Core\Batch;
6 * Defines a common interface for batch storage operations.
8 interface BatchStorageInterface {
14 * The ID of the batch to load.
17 * An array representing the batch, or FALSE if no batch was found.
19 public function load($id);
22 * Creates and saves a batch.
25 * The array representing the batch to create.
27 public function create(array $batch);
33 * The array representing the batch to update.
35 public function update(array $batch);
41 * The ID of the batch to delete.
43 public function delete($id);
46 * Cleans up failed or old batches.
48 public function cleanup();