function UpdateFetcher::fetchProjectData

Same name and namespace in other branches
  1. 9 core/modules/update/src/UpdateFetcher.php \Drupal\update\UpdateFetcher::fetchProjectData()
  2. 8.9.x core/modules/update/src/UpdateFetcher.php \Drupal\update\UpdateFetcher::fetchProjectData()
  3. 10 core/modules/update/src/UpdateFetcher.php \Drupal\update\UpdateFetcher::fetchProjectData()

File

core/modules/update/src/UpdateFetcher.php, line 75

Class

UpdateFetcher
Fetches project information from remote locations.

Namespace

Drupal\update

Code

public function fetchProjectData(array $project, $site_key = '') {
    $url = $this->buildFetchUrl($project, $site_key);
    return $this->doRequest($url, [
        'headers' => [
            'Accept' => 'text/xml',
        ],
    ], $this->withHttpFallback);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.