BatchStorage::update

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

BatchStorage

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);
  }
}
doc_Drupal
2016-10-29 08:46:10
Comments
Leave a Comment

Please login to continue.