You are here

function DatabaseQueue::deleteByCategoryIdPrefix in Payment 8.2

Deletes payments from the queue by category ID prefix.

Parameters

string $category_id_prefix:

Overrides QueueInterface::deleteByCategoryIdPrefix

File

src/DatabaseQueue.php, line 265

Class

DatabaseQueue
Provides a database-based payment queue.

Namespace

Drupal\payment

Code

function deleteByCategoryIdPrefix($category_id_prefix) {
  $this->database
    ->delete('payment_queue')
    ->condition('category_id', $category_id_prefix . '%', 'LIKE')
    ->condition('queue_id', $this->queueId)
    ->execute();
}