You are here

private function EvaluationCode::updateGetFetchUrlBase in Drupal 8 upgrade evaluation 6

Same name and namespace in other branches
  1. 7 includes/EvaluationCode.php \Upgrade_check\EvaluationCode::updateGetFetchUrlBase()

Returns the base of the URL to fetch available update data for a project.

Parameters

$project: The array of project information from update_get_projects().

Return value

The base of the URL used for fetching available update data. This does not include the path elements to specify a particular project, version, site_key, etc.

See also

_update_build_fetch_url()

1 call to EvaluationCode::updateGetFetchUrlBase()
EvaluationCode::updateBuildFetchUrl in includes/EvaluationCode.php
Generates the URL to fetch information about project updates.

File

includes/EvaluationCode.php, line 243

Class

EvaluationCode

Namespace

Upgrade_check

Code

private function updateGetFetchUrlBase($project) {
  if (!empty($project['info']['project status url'])) {
    return $project['info']['project status url'];
  }
  module_load_include('module', 'update');
  return variable_get('update_fetch_url', UPDATE_DEFAULT_URL);
}