public static function Project::buildFetchUrl

8.0.x Project.php public static Project::buildFetchUrl(array $request)
7.x Project.php public static Project::buildFetchUrl(array $request)
master Project.php public static Project::buildFetchUrl(array $request)

Returns URL to the updates service for the given request.

Parameters

array $request: A request array.

Return value

string URL to the updates service.

See also

\Drupal\update\UpdateFetcher::buildFetchUrl()

3 calls to Project::buildFetchUrl()
Project::getInstance in lib/Drush/UpdateService/Project.php
Downloads release info xml from update service.
ReleaseInfo::clearCached in lib/Drush/UpdateService/ReleaseInfo.php
Delete cached update service file of a project.
StatusInfoDrush::lastCheck in lib/Drush/UpdateService/StatusInfoDrush.php
Returns time of last check of available updates.

File

lib/Drush/UpdateService/Project.php, line 94

Namespace

Drush\UpdateService

Class

Project
Representation of a project's release info from the update service.

Code

public static function buildFetchUrl(array $request) {
  $status_url = isset($request['status url']) ? $request['status url'] : ReleaseInfo::DEFAULT_URL;
  return $status_url . '/' . $request['name'] . '/' . $request['drupal_version'];
}