interface BatchStorageInterface in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Batch/BatchStorageInterface.php \Drupal\Core\Batch\BatchStorageInterface
Defines a common interface for batch storage operations.
Hierarchy
- interface \Drupal\Core\Batch\BatchStorageInterface
Expanded class hierarchy of BatchStorageInterface
All classes that implement BatchStorageInterface
1 file declares its use of BatchStorageInterface
- BatchNegotiator.php in core/
modules/ system/ src/ Theme/ BatchNegotiator.php - Contains \Drupal\system\Theme\BatchNegotiator.
File
- core/
lib/ Drupal/ Core/ Batch/ BatchStorageInterface.php, line 13 - Contains \Drupal\Core\Batch\BatchStorageInterface.
Namespace
Drupal\Core\BatchView source
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();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BatchStorageInterface:: |
public | function | Cleans up failed or old batches. | 2 |
BatchStorageInterface:: |
public | function | Creates and saves a batch. | 2 |
BatchStorageInterface:: |
public | function | Deletes a batch. | 2 |
BatchStorageInterface:: |
public | function | Loads a batch. | 2 |
BatchStorageInterface:: |
public | function | Updates a batch. | 2 |