class AggregatorRefresh
Same name in other branches
- 8.9.x core/modules/aggregator/src/Plugin/QueueWorker/AggregatorRefresh.php \Drupal\aggregator\Plugin\QueueWorker\AggregatorRefresh
Updates a feed's items.
Plugin annotation
@QueueWorker(
id = "aggregator_feeds",
title = @Translation("Aggregator refresh"),
cron = {"time" = 60}
)
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements \Drupal\Component\Plugin\PluginInspectionInterface, \Drupal\Component\Plugin\DerivativeInspectionInterface
- class \Drupal\Core\Queue\QueueWorkerBase extends \Drupal\Component\Plugin\PluginBase implements \Drupal\Core\Queue\QueueWorkerInterface
- class \Drupal\aggregator\Plugin\QueueWorker\AggregatorRefresh extends \Drupal\Core\Queue\QueueWorkerBase
- class \Drupal\Core\Queue\QueueWorkerBase extends \Drupal\Component\Plugin\PluginBase implements \Drupal\Core\Queue\QueueWorkerInterface
Expanded class hierarchy of AggregatorRefresh
File
-
core/
modules/ aggregator/ src/ Plugin/ QueueWorker/ AggregatorRefresh.php, line 17
Namespace
Drupal\aggregator\Plugin\QueueWorkerView source
class AggregatorRefresh extends QueueWorkerBase {
/**
* {@inheritdoc}
*/
public function processItem($data) {
if ($data instanceof FeedInterface) {
$data->refreshItems();
}
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
AggregatorRefresh::processItem | public | function |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.