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

Breadcrumb

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

function UpdateFetcher::getFetchBaseUrl

1 call to UpdateFetcher::getFetchBaseUrl()
UpdateFetcher::buildFetchUrl in core/modules/update/src/UpdateFetcher.php

File

core/modules/update/src/UpdateFetcher.php, line 147

Class

UpdateFetcher
Fetches project information from remote locations.

Namespace

Drupal\update

Code

public function getFetchBaseUrl($project) {
    if (isset($project['info']['project status url'])) {
        $url = $project['info']['project status url'];
    }
    else {
        $url = $this->fetchUrl;
        if (empty($url)) {
            $url = static::UPDATE_DEFAULT_URL;
        }
    }
    return $url;
}

API Navigation

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