UpdateFetcherInterface::buildFetchUrl

public UpdateFetcherInterface::buildFetchUrl(array $project, $site_key = '')

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()

File

core/modules/update/src/UpdateFetcherInterface.php, line 58

Class

UpdateFetcherInterface
Fetches project information from remote locations.

Namespace

Drupal\update

Code

public function buildFetchUrl(array $project, $site_key = '');
doc_Drupal
2016-10-29 09:50:42
Comments
Leave a Comment

Please login to continue.