function CronQueueTestDatabaseDelayException::processItem

Same name in other branches
  1. 9 core/modules/system/tests/modules/cron_queue_test/src/Plugin/QueueWorker/CronQueueTestDatabaseDelayException.php \Drupal\cron_queue_test\Plugin\QueueWorker\CronQueueTestDatabaseDelayException::processItem()
  2. 10 core/modules/system/tests/modules/cron_queue_test/src/Plugin/QueueWorker/CronQueueTestDatabaseDelayException.php \Drupal\cron_queue_test\Plugin\QueueWorker\CronQueueTestDatabaseDelayException::processItem()

File

core/modules/system/tests/modules/cron_queue_test/src/Plugin/QueueWorker/CronQueueTestDatabaseDelayException.php, line 27

Class

CronQueueTestDatabaseDelayException
A queue worker for testing cron exception handling.

Namespace

Drupal\cron_queue_test\Plugin\QueueWorker

Code

public function processItem($data) {
    throw new DelayedRequeueException(self::DELAY_INTERVAL);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.