
| Current Path : /var/www/html/ift/web/core/lib/Drupal/Core/Batch/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/ift/web/core/lib/Drupal/Core/Batch/BatchStorageInterface.php |
<?php
namespace Drupal\Core\Batch;
/**
* Defines a common interface for batch storage operations.
*/
interface BatchStorageInterface {
/**
* Loads a batch.
*
* @param int $id
* The ID of the batch to load.
*
* @return array
* An array representing the batch, or FALSE if no batch was found.
*/
public function load($id);
/**
* Creates and saves a batch.
*
* @param array $batch
* The array representing the batch to create.
*/
public function create(array $batch);
/**
* Updates a batch.
*
* @param array $batch
* The array representing the batch to update.
*/
public function update(array $batch);
/**
* Deletes a batch.
*
* @param int $id
* The ID of the batch to delete.
*/
public function delete($id);
/**
* Cleans up failed or old batches.
*/
public function cleanup();
}