function UpdateFetcherInterface::buildFetchUrl
Same name in other branches
- 9 core/modules/update/src/UpdateFetcherInterface.php \Drupal\update\UpdateFetcherInterface::buildFetchUrl()
- 8.9.x core/modules/update/src/UpdateFetcherInterface.php \Drupal\update\UpdateFetcherInterface::buildFetchUrl()
- 10 core/modules/update/src/UpdateFetcherInterface.php \Drupal\update\UpdateFetcherInterface::buildFetchUrl()
Generates the URL to fetch information about project updates.
This figures out the right URL to use, based on the project's .info.yml file and the global defaults. Appends optional query arguments when the site is configured to report usage stats.
Parameters
array $project: The array of project information from \Drupal\update\UpdateManager::getProjects().
string $site_key: (optional) The anonymous site key hash. Defaults to an empty string.
Return value
string The URL for fetching information about updates to the specified project.
See also
\Drupal\update\UpdateProcessor::fetchData()
\Drupal\update\UpdateProcessor::processFetchTask()
\Drupal\update\UpdateManager::getProjects()
File
-
core/
modules/ update/ src/ UpdateFetcherInterface.php, line 78
Class
- UpdateFetcherInterface
- Fetches project information from remote locations.
Namespace
Drupal\updateCode
public function buildFetchUrl(array $project, $site_key = '');
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.