function UpdateProcessor::createFetchTask
Same name in other branches
- 9 core/modules/update/src/UpdateProcessor.php \Drupal\update\UpdateProcessor::createFetchTask()
- 8.9.x core/modules/update/src/UpdateProcessor.php \Drupal\update\UpdateProcessor::createFetchTask()
- 10 core/modules/update/src/UpdateProcessor.php \Drupal\update\UpdateProcessor::createFetchTask()
1 call to UpdateProcessor::createFetchTask()
- PackageManagerUpdateProcessor::getProjectData in core/
modules/ package_manager/ src/ PackageManagerUpdateProcessor.php - Gets the project data by name.
File
-
core/
modules/ update/ src/ UpdateProcessor.php, line 132
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']] = $this->time
->getRequestTime();
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.