public function UpdateFetcherInterface::buildFetchUrl in Drupal 9
Same name and namespace in other branches
- 8 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()
1 method overrides UpdateFetcherInterface::buildFetchUrl()
- UpdateFetcher::buildFetchUrl in core/
modules/ update/ src/ UpdateFetcher.php - Generates the URL to fetch information about project updates.
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 = '');