public function Database::deleteQueue in Advanced Queue 8
Deletes the queue.
Called upon deleting the parent queue config entity, to allow backends to remove any leftover jobs and perform cleanup.
Overrides BackendInterface::deleteQueue
File
- src/
Plugin/ AdvancedQueue/ Backend/ Database.php, line 70
Class
- Database
- Provides the database queue backend.
Namespace
Drupal\advancedqueue\Plugin\AdvancedQueue\BackendCode
public function deleteQueue() {
// Delete all jobs in the current queue.
$this->connection
->delete('advancedqueue')
->condition('queue_id', $this->queueId)
->execute();
}