function AggregatorRefresh::processItem
Works on a single queue item.
Parameters
mixed $data: The data that was passed to \Drupal\Core\Queue\QueueInterface::createItem() when the item was queued.
Overrides QueueWorkerInterface::processItem
File
- 
              core/
modules/ aggregator/ src/ Plugin/ QueueWorker/ AggregatorRefresh.php, line 22  
Class
- AggregatorRefresh
 - Updates a feed's items.
 
Namespace
Drupal\aggregator\Plugin\QueueWorkerCode
public function processItem($data) {
  if ($data instanceof FeedInterface) {
    $data->refreshItems();
  }
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.