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
1 2 3 4 5 6 7 8 9 10 11 | 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.