function Feed::refreshItems
Same name in other branches
- 9 core/modules/aggregator/src/Entity/Feed.php \Drupal\aggregator\Entity\Feed::refreshItems()
Overrides FeedInterface::refreshItems
File
-
core/
modules/ aggregator/ src/ Entity/ Feed.php, line 84
Class
- Feed
- Defines the aggregator feed entity class.
Namespace
Drupal\aggregator\EntityCode
public function refreshItems() {
$success = \Drupal::service('aggregator.items.importer')->refresh($this);
// Regardless of successful or not, indicate that it has been checked.
$this->setLastCheckedTime(REQUEST_TIME);
$this->setQueuedTime(0);
$this->save();
return $success;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.