public function UpdateProcessor::createFetchTask in Drupal 10
Same name and namespace in other branches
- 8 core/modules/update/src/UpdateProcessor.php \Drupal\update\UpdateProcessor::createFetchTask()
- 9 core/modules/update/src/UpdateProcessor.php \Drupal\update\UpdateProcessor::createFetchTask()
File
- core/
modules/ update/ src/ UpdateProcessor.php, line 115
Class
- UpdateProcessor
- Process project update information.
Namespace
Drupal\updateCode
public function createFetchTask($project) {
if (empty($this->fetchTasks)) {
$this->fetchTasks = $this->fetchTaskStore
->getAll();
}
if (empty($this->fetchTasks[$project['name']])) {
$this->fetchQueue
->createItem($project);
$this->fetchTaskStore
->set($project['name'], $project);
$this->fetchTasks[$project['name']] = REQUEST_TIME;
}
}