public function DatabaseQueue::releaseItems in Queue UI 8.2
Parameters
$queue_name:
Return value
\Drupal\Core\Database\StatementInterface|int|null
Overrides QueueUIBase::releaseItems
File
- src/
Plugin/ QueueUI/ DatabaseQueue.php, line 93
Class
- DatabaseQueue
- Defines the default Drupal Queue UI backend
Namespace
Drupal\queue_ui\Plugin\QueueUICode
public function releaseItems($queue_name) {
return $this->database
->update('queue')
->fields([
'expire' => 0,
])
->condition('name', $queue_name, '=')
->execute();
}