public function UpdateProcessor::fetchData in Drupal 10
Same name and namespace in other branches
- 8 core/modules/update/src/UpdateProcessor.php \Drupal\update\UpdateProcessor::fetchData()
- 9 core/modules/update/src/UpdateProcessor.php \Drupal\update\UpdateProcessor::fetchData()
File
- core/
modules/ update/ src/ UpdateProcessor.php, line 129
Class
- UpdateProcessor
- Process project update information.
Namespace
Drupal\updateCode
public function fetchData() {
$end = time() + $this->updateSettings
->get('fetch.timeout');
if ($this->fetchQueue
->numberOfItems()) {
// Delete any stored project data as that needs refreshing when
// update_calculate_project_data() is called.
$this->tempStore
->delete('update_project_data');
}
while (time() < $end && ($item = $this->fetchQueue
->claimItem())) {
$this
->processFetchTask($item->data);
$this->fetchQueue
->deleteItem($item);
}
}