public BatchStorage::update(array $batch)
Updates a batch.
Parameters
array $batch: The array representing the batch to update.
Overrides BatchStorageInterface::update
File
- core/lib/Drupal/Core/Batch/BatchStorage.php, line 93
Class
Namespace
Drupal\Core\Batch
Code
public function update(array $batch) {
try {
$this->connection->update('batch')
->fields(array('batch' => serialize($batch)))
->condition('bid', $batch['id'])
->execute();
}
catch (\Exception $e) {
$this->catchException($e);
}
}
Please login to continue.