class AggregatorRefresh

Updates a feed's items.

Plugin annotation


@QueueWorker(
  id = "aggregator_feeds",
  title = @Translation("Aggregator refresh"),
  cron = {"time" = 60}
)

Hierarchy

Expanded class hierarchy of AggregatorRefresh

File

core/modules/aggregator/src/Plugin/QueueWorker/AggregatorRefresh.php, line 17

Namespace

Drupal\aggregator\Plugin\QueueWorker
View source
class AggregatorRefresh extends QueueWorkerBase {
  
  /**
   * {@inheritdoc}
   */
  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.