public function UpdateFetcher::fetchProjectData in Drupal 9
Same name and namespace in other branches
- 8 core/modules/update/src/UpdateFetcher.php \Drupal\update\UpdateFetcher::fetchProjectData()
Retrieves the project information.
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 project information fetched as string. Empty string upon failure.
Overrides UpdateFetcherInterface::fetchProjectData
File
- core/
modules/ update/ src/ UpdateFetcher.php, line 75
Class
- UpdateFetcher
- Fetches project information from remote locations.
Namespace
Drupal\updateCode
public function fetchProjectData(array $project, $site_key = '') {
$url = $this
->buildFetchUrl($project, $site_key);
return $this
->doRequest($url, [
'headers' => [
'Accept' => 'text/xml',
],
], $this->withHttpFallback);
}