public function MongoBatchBackend::delete in MongoDB 8
Loads a batch.
Parameters
int $id: The ID of the batch to delete.
Overrides BatchStorageInterface::delete
File
- src/
MongoBatchBackend.php, line 95 - Contains \Drupal\mongodb\MongoBatchBackend.
Class
Namespace
Drupal\mongodbCode
public function delete($id) {
$this
->mongoCollection()
->remove([
'_id' => (int) $id,
]);
}