public function System::releaseItem

Implements Drupal\Core\Queue\QueueInterface::releaseItem().

Overrides QueueInterface::releaseItem

File

drupal/core/lib/Drupal/Core/Queue/System.php, line 94
Definition of Drupal\Core\Queue\System.

Class

System
Default queue implementation.

Namespace

Drupal\Core\Queue

Code

public function releaseItem($item) {
  $update = db_update('queue')
    ->fields(array(
    'expire' => 0,
  ))
    ->condition('item_id', $item->item_id);
  return $update
    ->execute();
}