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::__construct

public UpdateFetcher::__construct(ConfigFactoryInterface $config_factory, ClientInterface $http_client) Constructs a UpdateFetcher. Parameters \Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory. \GuzzleHttp\ClientInterface $http_client: A Guzzle client object. File core/modules/update/src/UpdateFetcher.php, line 51 Class UpdateFetcher Fetches project information from remote locations. Namespace Drupal\update Code public function __construct(ConfigFactoryInt

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';

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::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::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::$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;

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::$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

Fetches project information from remote locations. Hierarchy class \Drupal\update\UpdateFetcher implements UpdateFetcherInterface uses DependencySerializationTrait File core/modules/update/src/UpdateFetcher.php, line 13 Namespace Drupal\update Members Name Modifiers Type Description DependencySerializationTrait::$_serviceIds protected property An array of service IDs keyed by property name used for serialization. DependencySerializationTrait::__sleep public functio