1. 8.5.x core/modules/aggregator/src/Plugin/QueueWorker/AggregatorRefresh.php
  2. 8.0.x core/modules/aggregator/src/Plugin/QueueWorker/AggregatorRefresh.php
  3. 8.1.x core/modules/aggregator/src/Plugin/QueueWorker/AggregatorRefresh.php
  4. 8.2.x core/modules/aggregator/src/Plugin/QueueWorker/AggregatorRefresh.php
  5. 8.3.x core/modules/aggregator/src/Plugin/QueueWorker/AggregatorRefresh.php
  6. 8.4.x core/modules/aggregator/src/Plugin/QueueWorker/AggregatorRefresh.php
  7. 8.6.x core/modules/aggregator/src/Plugin/QueueWorker/AggregatorRefresh.php

Namespace

Drupal\aggregator\Plugin\QueueWorker

File

core/modules/aggregator/src/Plugin/QueueWorker/AggregatorRefresh.php
View source
<?php

namespace Drupal\aggregator\Plugin\QueueWorker;

use Drupal\aggregator\FeedInterface;
use Drupal\Core\Queue\QueueWorkerBase;

/**
 * Updates a feed's items.
 *
 * @QueueWorker(
 *   id = "aggregator_feeds",
 *   title = @Translation("Aggregator refresh"),
 *   cron = {"time" = 60}
 * )
 */
class AggregatorRefresh extends QueueWorkerBase {

  /**
   * {@inheritdoc}
   */
  public function processItem($data) {
    if ($data instanceof FeedInterface) {
      $data
        ->refreshItems();
    }
  }

}

Classes

Namesort descending Description
AggregatorRefresh Updates a feed's items.