protected BatchStorage::doCreate(array $batch)
Saves a batch.
Parameters
array $batch: The array representing the batch to create.
File
- core/lib/Drupal/Core/Batch/BatchStorage.php, line 151
Class
Namespace
Drupal\Core\Batch
Code
1 2 3 4 5 6 7 8 9 10 | protected function doCreate( array $batch ) { $this ->connection->insert( 'batch' ) ->fields( array ( 'bid' => $batch [ 'id' ], 'timestamp' => REQUEST_TIME, 'token' => $this ->csrfToken->get( $batch [ 'id' ]), 'batch' => serialize( $batch ), )) ->execute(); } |
Please login to continue.