UpdateProcessor::fetchData

public UpdateProcessor::fetchData()

Attempts to drain the queue of tasks for release history data to fetch.

Overrides UpdateProcessorInterface::fetchData

File

core/modules/update/src/UpdateProcessor.php, line 128

Class

UpdateProcessor
Process project update information.

Namespace

Drupal\update

Code

public function fetchData() {
  $end = time() + $this->updateSettings->get('fetch.timeout');
  while (time() < $end && ($item = $this->fetchQueue->claimItem())) {
    $this->processFetchTask($item->data);
    $this->fetchQueue->deleteItem($item);
  }
}
doc_Drupal
2016-10-29 09:50:59
Comments
Leave a Comment

Please login to continue.