function CronQueueTestDeriverQueue::processItem

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

File

core/modules/system/tests/modules/cron_queue_test/src/Plugin/QueueWorker/CronQueueTestDeriverQueue.php, line 31

Class

CronQueueTestDeriverQueue
A queue worker for testing derivatives.

Namespace

Drupal\cron_queue_test\Plugin\QueueWorker

Code

public function processItem($data) {
    $state = \Drupal::state();
    $processed = $state->get(self::PLUGIN_ID, 0);
    $state->set(self::PLUGIN_ID, ++$processed);
}

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