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. Defau

UpdateFetcher::getFetchBaseUrl

public UpdateFetcher::getFetchBaseUrl($project) Returns the base of the URL to fetch available update data for a project. Parameters array $project: The array of project information from \Drupal\Update\UpdateManager::getProjects(). Return value string 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. Overrides UpdateFetcherInterface::getFetchBaseUrl File core/modules/update/src/UpdateFe

UpdateFetcher::UPDATE_DEFAULT_URL

URL to check for updates, if a given project doesn't define its own. File core/modules/update/src/UpdateFetcher.php, line 20 Class UpdateFetcher Fetches project information from remote locations. Namespace Drupal\update Code const UPDATE_DEFAULT_URL = 'http://updates.drupal.org/release-history';

UpdateFetcherInterface

Fetches project information from remote locations. Hierarchy interface \Drupal\update\UpdateFetcherInterface File core/modules/update/src/UpdateFetcherInterface.php, line 8 Namespace Drupal\update Members Name Modifiers Type Description UpdateFetcherInterface::buildFetchUrl public function Generates the URL to fetch information about project updates. UpdateFetcherInterface::fetchProjectData public function Retrieves the project information. UpdateFetcherInterfa

UpdateFetcher::$httpClient

The HTTP client to fetch the feed data with. Type: \GuzzleHttp\ClientInterface File core/modules/update/src/UpdateFetcher.php, line 41 Class UpdateFetcher Fetches project information from remote locations. Namespace Drupal\update Code protected $httpClient;

UpdateFetcher::buildFetchUrl

public UpdateFetcher::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

UpdateFetcher::fetchProjectData

public UpdateFetcher::fetchProjectData(array $project, $site_key = '') Retrieves the project information. 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 project information fetched as string. Empty string upon failure. Overrides UpdateFetcherInterface::fetchProjectData File core/modules/update/src/UpdateFetcher.php, line

UpdateFetcher::$fetchUrl

The fetch url configured in the update settings. Type: string File core/modules/update/src/UpdateFetcher.php, line 27 Class UpdateFetcher Fetches project information from remote locations. Namespace Drupal\update Code protected $fetchUrl;

UpdateFetcher::$updateSettings

The update settings Type: \Drupal\Core\Config\Config File core/modules/update/src/UpdateFetcher.php, line 34 Class UpdateFetcher Fetches project information from remote locations. Namespace Drupal\update Code protected $updateSettings;

UpdateException

Exception class used to throw error if a module update fails. Hierarchy class \Drupal\Core\Utility\UpdateException extends \Exception File core/lib/Drupal/Core/Utility/UpdateException.php, line 8 Namespace Drupal\Core\Utility Members