You are here

public function UpdateFetcherInterface::buildFetchUrl in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 62
Contains \Drupal\update\UpdateFetcherInterface.

Class

UpdateFetcherInterface
Fetches project information from remote locations.

Namespace

Drupal\update

Code

public function buildFetchUrl(array $project, $site_key = '');