function UpdateProcessorInterface::createFetchTask
Same name in other branches
- 8.9.x core/modules/update/src/UpdateProcessorInterface.php \Drupal\update\UpdateProcessorInterface::createFetchTask()
- 10 core/modules/update/src/UpdateProcessorInterface.php \Drupal\update\UpdateProcessorInterface::createFetchTask()
- 11.x core/modules/update/src/UpdateProcessorInterface.php \Drupal\update\UpdateProcessorInterface::createFetchTask()
Adds a task to the queue for fetching release history data for a project.
We only create a new fetch task if there's no task already in the queue for this particular project (based on 'update_fetch_task' key-value collection).
Parameters
array $project: Associative array of information about a project as created by \Drupal\update\UpdateManager::getProjects(), including keys such as 'name' (short name), and the 'info' array with data from a .info.yml file for the project.
See also
\Drupal\update\UpdateManager::getProjects()
\Drupal\update\UpdateManager::refreshUpdateData()
\Drupal\update\UpdateProcessor::fetchData()
\Drupal\update\UpdateProcessor::processFetchTask()
1 method overrides UpdateProcessorInterface::createFetchTask()
- UpdateProcessor::createFetchTask in core/
modules/ update/ src/ UpdateProcessor.php - Adds a task to the queue for fetching release history data for a project.
File
-
core/
modules/ update/ src/ UpdateProcessorInterface.php, line 45
Class
- UpdateProcessorInterface
- Processor of project update information.
Namespace
Drupal\updateCode
public function createFetchTask($project);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.