You are here

public function DatabaseQueue::releaseItem in Queue UI 8.2

Parameters

int $item_id:

Overrides QueueUIBase::releaseItem

File

src/Plugin/QueueUI/DatabaseQueue.php, line 124

Class

DatabaseQueue
Defines the default Drupal Queue UI backend

Namespace

Drupal\queue_ui\Plugin\QueueUI

Code

public function releaseItem($item_id) {
  $this->database
    ->update('queue')
    ->condition('item_id', $item_id)
    ->fields([
    'expire' => 0,
  ])
    ->execute();
}