public function DatabaseQueue::releaseItem in Purge 8.3
Implements \Drupal\Core\Queue\QueueInterface::releaseItem().
Overrides DatabaseQueue::releaseItem
File
- src/
Plugin/ Purge/ Queue/ DatabaseQueue.php, line 199
Class
- DatabaseQueue
- A QueueInterface compliant database backed queue.
Namespace
Drupal\purge\Plugin\Purge\QueueCode
public function releaseItem($item) {
return (bool) $this->connection
->update(static::TABLE_NAME)
->fields([
'expire' => 0,
'data' => serialize($item->data),
])
->condition('item_id', $item->item_id)
->execute();
}