function DatabaseQueue::deleteByCategoryId in Payment 8.2
Deletes payments from the queue by category ID.
Parameters
string $category_id:
Overrides QueueInterface::deleteByCategoryId
File
- src/
DatabaseQueue.php, line 255
Class
- DatabaseQueue
- Provides a database-based payment queue.
Namespace
Drupal\paymentCode
function deleteByCategoryId($category_id) {
$this->database
->delete('payment_queue')
->condition('category_id', $category_id)
->condition('queue_id', $this->queueId)
->execute();
}