Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. UpdateFetcher.php

function 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);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal